檢視 HTML 的原始碼
←
HTML
跳轉到:
導覽
、
搜尋
根據以下的原因,您並無權限去做編輯這個頁面:
您剛才的請求只有這個使用者組的使用者才能使用:
使用者
你可以檢視並複製本頁面的原始碼。
[[分類:HTML]] *[[HTML/英文單字|用到的英文單字]] *[http://jendo.org/files/doc/Demo/ 撰寫範例] ===文件類型宣告=== <!DOCTYPE>聲明位於位於 HTML 原始碼中的第一行,優先於 <html> 標籤 ====(一)HTML5 宣告==== <pre><!DOCTYPE html></pre> HTML5 不基於 SGML ,因此不需要對DTD進行引用,但是需要 doctype 來規範瀏覽器的行為。 ====(二)HTML4 宣告==== #HTML4.01和XHTML1.0寬鬆過渡等同XHTML1.1嚴格,可以使用一些不被W3C推薦的標籤(如:font、b等),不可以使用框架:<pre><!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'></pre>或<pre><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'></pre>或<pre><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'></pre> #HTML4.01和XHTML1.0嚴格,不可以使用一些不被W3C推薦的標籤(如:font、b等),不可以使用框架:<pre><!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'></pre>或<pre><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'></pre> #可以使用一些不被W3C推薦的標籤(如:font、b等),可以使用框架:<pre><!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Frameset//EN' 'http://www.w3.org/TR/html4/frameset.dtd'></pre>或<pre><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'></pre> HTML4.01基於SGML,所以需要對DTD進行引用,才能告知瀏覽器檔案所使用的檔案類型。 宣告中,聲明了檔案的根元素是 html ,它在「公共標識符被定義為“-//W3C//DTD XHTML 1.0 Strict//EN” 的DTD」中進行了定義。瀏覽器將明白如何尋找匹配此公共標識符的DTD。如果找不到,瀏覽器將使用公共標識符後面的 URL 來尋找 DTD 的位置。 *-:表示組織名稱未註冊。 Internet 工程任務組(IETF)和萬維網協會(W3C)並非註冊的 ISO 組織。+為預設值,表示組織名稱已註冊。 *DTD:指定公開文本類型,即所引用的對象類型。預設為DTD。 *HTML:指定公開文本描述,即對所引用的公開文本的唯一描述性名稱。後面可附帶版本號。預設為HTML。 *URL:指定所引用對象的位置。 *Strict:排除所有 W3C 專家希望逐步淘汰的代表性屬性和元素。 ====(三)各標籤適用版本==== <table class=nicetable> <tr> <th rowspan='2' style='width:20%;'>標籤</th> <th rowspan='2' style='width:15%;'>HTML5</th> <th colspan='3' style='width:45%;'>HTML 4.01 / XHTML 1.0</th> <th rowspan='2' style='width:20%;'>XHTML 1.1</th> </tr> <tr> <th width='15%'>Transitional</th> <th width='15%'>Strict</th> <th width='15%'>Frameset</th> </tr> <tr> <td><a></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><abbr></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><acronym></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><address></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><applet></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><area></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><article></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><aside></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><audio></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><b></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><base></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><basefont></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><bdi></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><bdo></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><big></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><blockquote></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><body></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><br></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><button></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><canvas></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><caption></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><center></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><cite></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><code></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><col></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><colgroup></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><command></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><datalist></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><dd></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><del></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><details></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><dfn></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><dir></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><div></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><dl></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><dt></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><em></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><embed></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><fieldset></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><figcaption></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><figure></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><font></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><footer></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><form></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><frame></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><frameset></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><head></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><header></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><h1> to <h6></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><hr></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><html></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><i></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><iframe></td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><img></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><input></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><ins></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><keygen></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><kbd></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><label></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><legend></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><li></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><link></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><map></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><mark></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><menu></td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><meta></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><meter></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><nav></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><noframes></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><noscript></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><object></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><ol></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><optgroup></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><option></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><output></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><p></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><param></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><pre></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><progress></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><q></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><rp></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><rt></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><ruby></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><s></td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><samp></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><script></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><section></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><select></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><small></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><source></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><span></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><strike></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><strong></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><style></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><sub></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><summary></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><sup></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><table></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><tbody></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><td></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><textarea></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><tfoot></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><th></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><thead></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><time></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><title></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><tr></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><track></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><tt></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><u></td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><ul></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><var></td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><video></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> <tr> <td><wbr></td> <td>Yes</td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> <td><span style='color:red;'>No</span></td> </tr> </table> ===HTML語法=== HTML 的標籤內容分為三個層級:標籤、屬性、樣式指示 ====(一)標籤(標記)==== *標籤必須成對:一般由開始標籤和結束標籤構成一對,如:<×>....</×>其中的×代表標籤命令。以上角括號及斜線均為英文半形。 *開始與結束標籤合體:meta(對自身的說明)、img(圖照)、br(換行)、hr(水平線)是開始標籤與結束標籤合一的,寫成<meta />、<img />、<br/>、<hr/> ====(二)屬性==== *開始標記命令可以用「屬性」加以修飾,例如 img 標記可以有: *#src 屬性,指示圖的位置 *#width 屬性,指示圖的寬度 *#height 屬性,指示圖的高度 *屬性名後面是屬性值,屬性名與屬性值之間用「=」相連。同標記內兩組屬性是用空白相隔開。 *屬性值通常用一對單引號「'」或雙引號「"」包起來,如果屬性值當中不含空白,則引號通常可以省略;如果屬性值當中含空白,則引號絕對不可以省略。 *class 屬性:引用已經定義的樣式。 *style 樣式屬性:指示後面的內容應該長什麼樣子 ====(三)樣式指示==== *style 的值包含的常常超過一項以上的樣式指示 *兩組樣式指示以「;」間開 *名與值以「:」相連 ===HTML重要的標記命令=== <pre> 標籤 ==== html 超文件(HyperText Markup Language) head 文件頭 title 標題 body 本文 a 超連結(anchor) img 圖(image) p 段(paragraph) br 跳行(break space) hr 水平線(Horizontal Rule) table 表 tr 表內之列(table row) td 表內之格(table diamond) th 表內之格(table head diamond) ol 有次序的列表(order list) ul 沒有次序的列表(unorder list) li 列表項目(list item) style 宣告樣式(修飾一個超文件) span 文字小片段 div 區塊(division) pre 保留原有斷行及排列之式(preserve) form 表單 屬性(用=連等號兩邊) ==== src= 圖照來源(source) href= 跳往那一個連結(hyper ref)(hyper reference) target= 跳往瀏覽器的那裡,預設值為本頁的本窗框,值_blank為新的空白頁。 style= 樣式屬性(修飾一個標籤) width= 寬度,可以用點(px,pt)或長度(cm)或百分比表示 height= 高度,可以用點(px,pt)或長度(cm)或百分比表示 border= 邊框。 樣式(用:連冒號兩邊) ==== font-family: 字體 font-size: 字的大小 font-weight: 字有多粗 text-align: 字的對齊方式 color: 字的顏色 width: 寬度 height: 高度 border: 邊框 border-collapse:collapse 合併框線 </pre> ===路徑=== {{:HTML/路徑}} ===其他=== *http 超文件傳輸協定(HyperText Transfer Protocol) *柏納李:HTTP 的發明人,在 1990年12月25日 實現第一次的 HTTP 傳輸,1991年8月6日第一個網頁伺服器上線。1994年柏納-李宣布全球資訊網完全免費的,不申請專利權,不徵收專利費,因此,人人都能輕易用上全球資訊網。 *從 wiki 頁複製 HTML 段落
此頁面包含以下模板:
HTML/路徑
(
檢視原始碼
)
HTML/重要的標記、屬性、樣式
(
檢視原始碼
)
返回到
HTML
。
導航
個人工具
登入
名字空間
頁面
討論
變換
檢視
閱讀
檢視原始碼
檢視歷史
動作
搜尋
導覽
首頁
近期變動
隨機頁面
使用說明
工具箱
連入頁面
相關頁面修訂記錄
特殊頁面
頁面資訊