HTML练习

2016-12-27  本文已影响0人  李较劲

完成HTML的第一段代码,目的是理解网页结构,为爬取数据做准备

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>The Blah</title>
    <!--存疑,还需要参照语法-->
    <link rel="stylesheet" type="text/css" href="homework.css">
</head>
<body>
    <!--header部分-->
    <div class="header">
        <!-- 图片 -->
        <!--定义无序列表,并加载样式-->
        <ul class="nav">
            <li><a href="#">Home</a></li>
            <li><a href="#">Site</a></li>
            <li><a href="#">Other</a></li>
        </ul>
    </div>

    <div class="main-content">
        <h2>The Blah</h2>
        <hr>
        <!--加载图片部分样式-->
        <ul class="photos">
            <!-- 图片 -->
        </ul>
        <!--段落,一段文字-->
        <P>
            Python is an easy to learn, powerful programming language.
            It has efficient high-level data structures and a simple but effective approach to object-oriented programming.
            Python’s elegant syntax and dynamic typing,
            together with its interpreted nature,
            make it an ideal language for scripting and rapid application development in many areas on most platforms.
        </P>
    </div>

    <div class="footer">
        <p>©Mugglecoding</p>
    </div>

</body>
</html>
上一篇 下一篇

猜你喜欢

热点阅读