XHTML1.0 檔頭類標籤
<script> 與 <style> 標籤
<script> 標籤是用來在文件當中,定義與呼叫 scripting languages 時使用。 <style> 標籤是用來在文件當中,設定 CSS 時使用。這兩個標籤皆有結束標籤。
| <style> STF stylesheet | |||
| 屬 性 | DTD | 說 明 | 屬 性 值 |
| type (必要) | STF | 類型 | text/css |
| media | STF | 用途 | screen tty tv projection handheld braille aural all |
| DTD:S=Strict,T=Transitional,F=Frameset。 | |||
| <script> STF scripting | |||
| 屬 性 | DTD | 說 明 | 屬 性 值 |
| type (必要) | STF | 類型 | text/ecmascript text/javascript text/jscript text/vbscript text/vbs text/xml |
| charset | STF | Script 的字元編碼 | 字元編碼 |
| defer | STF | 完全下載網 頁後才執行 |
defer |
| language | TF | Script 的語言種類 | javascript livescript vbscript other |
| src | STF | 目標的路徑檔名 | URL |
| <noscript> STF 單列型元素 | |||
| DTD:S=Strict,T=Transitional,F=Frameset。 | |||