下面是html制作百度首頁的源碼
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>百度一下,你就知道</title> </head> <body> <p align="right"> <font color="blue" size="2"> <a href="http://www.baidu.com/gaoji/preferences.html">搜索設置</a> |<a href="http://passport.baidu.com">登陸</a> |<a href="https://passport.baidu.com">注冊</a> </font> </p> <p align="center"> <img alt="百度" src="../images/baidu.gif" height="60px;" width="120px;"/> </p> <p align="center"> <font color="blue" size="2"> <a href="http://news.baidu.com">新聞</a> <font color="black"><b>網頁</b></font> <a href="http://tieba.baidu.com">貼吧</a> <a href="http://zhidao.baidu.com">知道</a> <a href="http://mp3.baidu.com">MP3</a> <a href="http://image.baidu.com">圖片</a> <a href="http://video.baidu.com">視頻</a> <a href="http://map.baidu.com">地圖</a> </font> </p> <p align="center"> <form action=""> <input type="text" name="wd" size="50" height="20px;" width="50px;"> <input type="submit" value="百度一下"> </form> </p> <p align="center"> <font color="blue" size="2"> <a href="http://hi.baidu.com">空間</a> <a href="http://baike.baidu.com">百科</a> <a href="http://www.hao123.com">hao123</a> <a href="/more/">更多>></a> </font> </p> <br/><br/><br/><br/><br/><br/> <p align="center"> <font color="blue" size="2"> <p><a href="http://utility.baidu.com">把百度設為主頁</a> <a href="">把百度加為收藏夾</a></p> <p><a href="http://top.baidu.com">搜索風云榜</a> <a href="http://home.baidu.com">關于百度</a> <a href="http://ir.baidu.com">About Baidu</a></p> <p>©2017年10月21日 百度 <a href="/duty">使用百度前必讀</a> <a href="http://www.niibeian.gov.cn">北京ICP證030173號</a> <img src="http://gimg.baidu.com/img/gs.gif"></p> </font> </p> </body> </html>
總結:
看似簡單,當我們寫起來的時候就感覺跟我學起來的完全不一樣呢!多加練習有助于我們更快學習。
相關推薦:
站點首頁是404Not Found
用360能打開首頁,用谷歌就打不開!
模板首頁出不來
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com