index.html
檔名.網頁副檔名
現今瀏覽器是以Html讀取網頁
標籤格式
<h1> <<html開頭標籤
..... <<內容
</h1> <<html結束標籤
兩種清單
<ul> <<一個清單
<li>....</li> <<清單內標籤,顯示為"."加上內容
<li>....</li> <<清單內標籤,顯示為"."加上內容
</ul>
<ol> <<一個清單
<li>....</li> <<清單內標籤,顯示為"1."加上內容
<li>....</li> <<清單內標籤,顯示為"2."加上內容
</ol>
網頁基本架構
<!DOCTYPE html> <<Html版本
<html> <<Html文件
<head>....</head> <<放置JavaScript和CSS...等
<body> <<放置網頁標籤與內容
....
</body>
</html>
http://abc.com/hello.html
網路協定://伺服器名稱/網頁檔案名稱
當你在瀏覽器上輸入網址,他會在abc.com伺服器找有沒有叫hello.html網頁檔,
找到後abc.com伺服器會回應給瀏覽器,把hello.html內容透過瀏覽器編碼後顯示出來
<a href="http://abc.com/hello.html">.....</a>
<a href="要連結網址">.....</a>
<a href="http://abc.com/hello.html" target="_blank">.....</a>
<a href="要連結網址" target="網頁開啟方式">.....</a>
a target有5種
_blank : 開新頁面
_self : 在相同框架打開頁面
_parent : 在父框架打開頁面
_top : 在相同頁面打開頁面
框架名稱 : 在指定框架打開頁面
target參考網址:http://www.w3schools.com/tags/att_a_target.asp
絕對連結網址
<a href="http://abc.com/hello.html">.....</a>
相對連結網址
<a href="hello.html">.....</a>
要能相對連結網址,必須創立一個網站資料夾,放置一堆網頁