【week1】day1:認識網(wǎng)頁結構,并自己動手寫一個網(wǎng)頁

1,網(wǎng)頁構成

  • html —— 結構
  • css —— 樣式
  • JS —— 功能

2,認識html

詳見 w3school-html

3,自己動手寫網(wǎng)頁

  • The result:


  • The code:
<!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>
    <div class = "header">
        <img src = "images/blah.png">
        <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"></li>
                <li><img src = "images/0003.jpg" width="150" height="150"></li>
                <li><img src = "images/0004.jpg" width="150" height="150"></li>
            </ul>

            <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>

    </div>
    <div class = "footer">
        <p>?mugglecoding</p>
    </div>
</body>
</html>```

#4,反思與總結
+ css文件與images以及html文檔應該放在同一個文件夾內。

***
KEEP FIGHTING!
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

友情鏈接更多精彩內容