html style样式引用


<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>title>
    <style type="text/css">
        h3 {
            color: #00b58a;
        }

        p.code {
            color: cadetblue;
        }

        #code {
            color: yellowgreen;
        }

        #divId a{
            color:blueviolet;
        }
        h2, h1 {
            color: red;
        }

        p a {
            color: orange;
        }

    style>
    <link href="../../css/base_css.css" type="text/css" rel="stylesheet"/>
head>
<body>

<h3>css是用来装修标签的h3>


<h2 style="font-size: 22px;color: #221199;text-align: center">css是用来装修标签的h2>


<p>引用样式p>


<p class="code">类选择符 p.codep>


<p id="code">id选择符 #p>


<div id="divId">
    <a>百度a>
    <a>腾讯a>
div>


<h2>h1 h2 做成一种风格h2>
<h1>h1 h2 做成一种风格h1>


<p>
    <a>设置段落里a的样式a>
p>



body>
html>

引用的外部style

@charset "utf-8";
p {
    color: brown;
    font-size: 20px;
}

你可能感兴趣的:(Html)