第一节练习项目:动手做自己的网页

代码

  <!DOCTYPE html>
  <html lang="en"> 
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="homework.css">
  </head>

  <body>
    <div class="header">
      <img src="images/blah.png" alt="logo">
      <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 Beach</h2>
      <hr>
      <ul class="photos">
        <li><img src="images/0001.jpg" width="150" height="150" alt="0001"></li>
        <li><img src="images/0003.jpg" width="150" height="150" alt="0003"></li>
        <li><img src="images/0004.jpg" width="150" height="150" alt="0004"></li>
        <p>
        stretching from Solta to Mljet, and this unique cycling trip captures the highlights with an ideal balance of activity, culture and relaxation. Experience the beautiful island of Korcula with its picturesque old town, the untouched beauty of Vis, and trendy Hvar with its Venetian architecture. In the company of a cycling guide, this stimulating journey explores towns and landscapes, many of which are on UNESCO's world heritage list. Aboard the comfortably appointed wooden motor yacht, there is ample time between cycles to swim in the azure waters and soak up the ambience of seaside towns.
        </p>
      </ul>
    </div>

    <div class="footer">
      <p>&copy MUGGLECODING</p>
    </div>
  </body>
  </html>

要点

原始代码(html,css,javascript)--------浏览器渲染---------网页
html结构 css样式 javascript行为
<head> 传递给浏览器
<body> 内是可见内容
其他标签可见:http://www.w3school.com.cn/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容