「HTML」修訂間的差異
跳至導覽
跳至搜尋
小 (→FAQ) |
小 (→動態Icon) |
||
行 15: | 行 15: | ||
==FAQ== | ==FAQ== | ||
− | + | ||
− | + | ||
− | |||
− | |||
===常用的特殊字元寫法=== | ===常用的特殊字元寫法=== | ||
* [http://msdn.microsoft.com/en-us/library/ms537495(VS.85).aspx ISO Latin-1 Character Set] | * [http://msdn.microsoft.com/en-us/library/ms537495(VS.85).aspx ISO Latin-1 Character Set] |
於 2010年6月11日 (五) 11:36 的修訂
HTML(HyperText Markup Language),參照:『維基百科~HTML』。
技術文件
- 舊版的HTML Spec
- RFC 1866 - Hypertext Markup Language - 2.0
- HTML 3.2 Reference Specification
- HTML 4.0 Specification
- 相關
FAQ
常用的特殊字元寫法
關閉遊覽器自帶的自動完成
- 加上 autocomplete="off"
<input type="text" name="cc" autocomplete="off" />
關於HTML DOM取得Element的方法
- document.getElementById: 根據傳入的值,找到 DOM 中 id 為該值的元素。
- document.getElementsByTagName: 傳回一個陣列,陣列內元素為 tag 名稱符合傳入的參數。
- document.getElementsByName: 傳回一個陣列,陣列元素的 name 屬性值符合傳入的參數。
關於表單內按下Tab鍵,切換到不同欄位的順序的方法
- HTML Attribute tabindex(IE 4以上適用)
建議不再使用的HTML標簽與屬性
HTML標簽
原本的HTML標簽 | 作用 | 日後改用 |
---|---|---|
<applet></applet> |
||
<basefont /> |
||
<blackface></blackface> |
||
<blockquote></blockquote> |
||
<center></center> |
置中 | |
<dir></dir> |
||
<embed /> |
||
<font></font> |
||
<i></i> |
||
<isindex /> |
||
<layer></layer> |
||
<menu></menu> |
||
<noembed></noembed> |
||
<s></s> |
||
<shadow></shadow> |
||
<strike></strike> |
||
<u></u> |
HTML屬性
原本的HTML屬性 | 作用 | 日後改用 |
---|---|---|
alink | ||
align | 對齊 | |
background | ||
border | ||
color | ||
compact | ||
face | ||
height | 高度 | 改用CSS或style |
language | ||
link | ||
name | ||
noshade | ||
nowrap | 不自動斷行 | |
size | ||
start | ||
text | ||
type | ||
value | ||
version | ||
vlink | ||
width |