美文网首页
HTML练习

HTML练习

作者: 李较劲 | 来源:发表于2016-12-27 21:22 被阅读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>

相关文章

网友评论

      本文标题:HTML练习

      本文链接:https://www.haomeiwen.com/subject/dgmevttx.html