optgroup 用在select 標記中可以使下拉列表內容更加有條理sub 上標sup 下標可與<em>一起用於註釋dbo dir 標記一起使用,可以改變文字的輸出方向,右->左eg:演示代碼: <!doctype html public -//w3c//dtd xhtml 1.0 transitional//en http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd><html xmlns=http://www.w3.org/1999/xhtml><head><meta http-equiv=content-type content=text/html; charset=gb2312 /><title>4個不常用html標籤optgroup、sub、sup和bdo。 - www.VeVb.com</title><style type=text/css>fieldset{width:300px;padding:5px 5px; margin:30px auto; display:block; line-height:125%; font-size:15px;}legend{margin-left:15px; font-size:18px; color:red; }bdo{color:red;}</style></head><body><fieldset><legend>optgroup</legend><select><optgroup label=html標記><option>table</option><option>tr</option><option>td</option><option>th</option></optgroup><optgroup label=asp內置對象><option>cookies</option><option>session</option><option>application</option><option>redirect</option></optgroup></select><br /><select><br /><optgroup label=><br /><option>....</option><br /></optgroup><br /></select></fieldset><fieldset class=sub><legend>sub標記</legend>x<sub>2</sub> 上標x<sub>2</sub><br />x<sup>2</sup> 下標x<sup>2</sup><hr />與<em>標籤結合可以用於註釋,例:<br />flying<sub><em>注:html xhtml網頁編碼版主</em></sub></fieldset><fieldset><legend>bdo標記</legend><bdo dir=ltr>我非常愛你</bdo><br /><bdo dir=rtl>你愛常非我</bdo><br />輸出結果為<br /><bdo dir=ltr>我非常愛你</bdo><bdo dir=rtl>你愛常非我</bdo><br />注:使用bod標籤時必須連用dir標籤屬性,ltr指從左到右的編排順序,rtl指從右到左的編排順序。 </p></p></fieldset></body></html> [ctrl+a 全部選擇提示:你可先修改部分代碼,再按運行]