9. 行動開發學院 http://MobileDev.TW
HTML Basic 9
l 元件 = 開始標籤+內容 +結束標籤
開始標籤
內容
結束標籤
p
這是一個段落
/p
a href=default.htm
這是一個連結
/a
br /
l 有些HTML元件沒有內容(empty element)
l 沒有內容的HTML元件會在開始標籤中結束
l 多數HTML元件可擁有屬性
l 元件可以巢狀方式出現(pbhello/b/p)
第3章:元件 element
10. 行動開發學院 http://MobileDev.TW
HTML Basic 10
第4章: 屬性
l 指定於開始標籤中的附加資訊
l table border=1
l a href=http://www.iii.org.tw/
l body bgcolor=yellow Deprecated
l 屬性值以雙引號標示,值內若包含雙引號可使用單
引號標示 name='John ShotGun Nelson'
l 屬性名稱=屬性值
a href=http://www.iii.org.twThis is a link/a
11. 行動開發學院 http://MobileDev.TW
HTML Basic 11
第5章:標題
h1This is a heading/h1
h2This is a heading/h2
h3This is a heading/h3
h4This is a heading/h4
h5This is a heading/h5
h6This is a heading/h6
l h1最大,h6最小
l 不要為了把字放大而使用標題標籤
l 標題前後會自動有一行空行
l 提供搜尋引擎網頁內容資訊結構
12. 行動開發學院 http://MobileDev.TW
HTML Basic 12
第6章:水平線hr
l 產生一條水平線 hr
l 五個屬性
l size 決定水平線的粗細 Deprecated
hr size=5
l width 決定水平線的長度 Deprecated
hr width=100
l align 決定水平線的對齊 left / center / right Deprecated
hr align=left Deprecated
l noshade 無陰影線
hr noshade=noshade Deprecated
l color 決定水平線的顏色
hr color=red Deprecated
17. 行動開發學院 http://MobileDev.TW
HTML Basic 17
第10章: 保留原編排
l 保留原本編排
pre
for i = 1 to 10
print i
next i
/pre
l 屬性:width 指定每行最大字元數
pre width=8
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
/pre
32. 行動開發學院 http://MobileDev.TW
HTML Basic 32
第15章:清單
• 無序(3種)
l circle
l disc
l square
• 有序(5種)
l 1
l A
l a
l I
l i
• 階層
ul type=disc
liApples/li
liBananas/li
liLemons/li
liOranges/li
/ul
ol type=A
liApples/li
liBananas/li
liLemons/li
liOranges/li
/ol
start:決定起始值 - 置於ol tag
value:改變該數值 - 置於 li tag
1. 語言的分類: Markup Language – HTML, XML Script Language – JavaScript, VBScript Programming Language – Java, C, C++ 2. 標記語言三要件: 標籤 Tag 屬性 Attribute 值 Value