Head First HTML与CSS学习(10.09)

<html>
    <head>

        <meta charset="utf-8">
        <title>小明的日记</title>
    <style type="text/css">
    h1, h2 {
        font-family: sans-serif;
        background-color= red;
        border: 2px solid gray;
    }
    p{
        color: maroon;
        border-bottom: 1px solid gray;
    }
    .green {
        color: green;
        }
    </style></head>

    <body bgcolor="tan" text="black">
        <h1>小明在美国</h1>
        <p>小明在美国度过了非常好的假期。</p>

        <h2><font face="arial">August 20,2012</font></h2>
        <p>总之过得很舒服</p>

        <h2 id="D1">July 14,2012</h2>
        <p class="green">总之过得很舒服,<q>千里之行始于足下。</q></p>
        <blockquote>
        去年元月时,花市灯如昼。<br>
        月上柳梢头,人约黄昏后。<br>
        今年元夜时,月与灯依旧。<br>
        不见去年人,泪满春衫袖。
        </blockquote>

        <h2 class="green">要准备的东西:</h2>
        <ul>
            <li>圣诞节礼物</li>
            <li>口罩</li>
            <li>大衣</li>
        </ul>



</body>
</html>

猜你喜欢

转载自blog.csdn.net/qq_25781517/article/details/78186868