script - スクリプトを適用する
スクリプトを適用します。
使用できるスクリプト言語(type属性に適用できる値)は以下のとおりです。
ただし、使用しているスクリプトがJavaScriptの場合はtype属性を省略することができます。
- application/ecmascript
- application/javascript
- application/x-ecmascript
- application/x-javascript
- text/ecmascript
- text/javascript
- text/javascript1.0
- text/javascript1.1
- text/javascript1.2
- text/javascript1.3
- text/javascript1.4
- text/javascript1.5
- text/jscript
- text/livescript
- text/x-ecmascript
- text/x-javascript
- text/javascript;e4x=1
主な属性一覧
サンプル
<html> <head> <script type="text/javascript"> <!-- document.write( "Hello, world." ); //--> </script> </head> </html>
表示例
- 表示例はありません -
カテゴリー:HTML&CSSリファレンス(旧タグ辞典)
2011/10/01 03:24:10 更新