customtag

書式

<ユーザー定義タグ>〜</ユーザー定義タグ>

属性

属性名 初期値 内 容
id なし IDを指定します。
class なし スタイルシートクラスを指定します。
style なし スタイルシートを指定します。

対応

Microsoft (MSDN)
[IE5〜]

説明

ユーザーが定義した独自のタグを指定します。Internet Explorer独自拡張です。<html>タグ内でxmlns:ユーザー定義タグのように使用するタグ名を指定しておく必要があります。

関連タグ

xml

サンプルコード [実行]

<html xmlns:customtag>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
<style type="text/css"><!--
customtag\:red { color:red; }
--></style>
</head>
<body>
<customtag:red>ここは赤文字になります。</customtag:red>
</body>
</html>