カスタムメッセージで利用可能なHTMLタグ・属性¶
カスタムメッセージでは以下のタグと属性が利用可能です。動的なスクリプト実行を防ぐため、以下のタグと属性以外はサニタイズされて無効化されます。
警告
- 無効化されるタグと属性一覧は機能改善やバグ修正によって事前の予告なく変更される可能性があります。
任意のタグの中で利用可能な属性¶
- 以下の属性は全ての利用可能なタグにおいて利用可能です。
- id
- class
- style
- data-repro--wrapper
- data-repro--close
- data-repro--primary-btn
- data-repro--secondary-btn
- data-silver-egg-cref
- data-silver-egg-prod
利用可能なタグと属性の一覧表¶
以下のタグがカスタムメッセージ内で利用可能です。また、任意のタグの中で利用可能な属性 に加えて各タグで利用可能な属性が存在します。表中では 任意のタグの中で利用可能な属性 を「*」 で表しています。
タグ | 利用可能属性 |
---|---|
a | target, href, title, * |
abbr | test, * |
address | * |
area | shape, coords, href, alt, * |
article | * |
aside | * |
audio | autoplay, controls, loop, preload, src, * |
b | * |
bdi | dir, * |
bdo | dir, * |
big | * |
blockquote | cite, * |
button | autofocus, disabled, form, formaction, formenctype, formmethod, formnovalidate, formtarget, name, type, value, * |
br | * |
caption | * |
center | * |
cite | * |
code | * |
col | align, valign, span, width, * |
colgroup | align, valign, span, width, * |
dd | * |
del | datetime, * |
details | open, * |
div | * |
dl | * |
dt | * |
em | * |
fieldset | disabled, form, name, * |
font | color, size, face, * |
footer | * |
form | accept, accept-charset, action, autocomplete, enctype, method, name, novalidate, target, * |
h1 | * |
h2 | * |
h3 | * |
h4 | * |
h5 | * |
h6 | * |
header | * |
hr | * |
i | * |
img | src, alt, title, width, height, * |
input | accept, align, alt, autocomplete, autofocus, checked, dirname, disabled, form, formaction, formenctype, formmethod, formnovalidate, formtarget, height, list, max, maxlength, min, multiple, name, pattern, placeholder, readonly, required, size, src, step, type, value, width, * |
ins | datetime, * |
label | for, form, * |
legend | * |
li | * |
mark | * |
nav | * |
ol | * |
option | disabled, label, selected, value, * |
optgroup | disabled, label, * |
p | * |
pre | * |
s | * |
section | * |
select | autofocus, disabled, form, multiple, name, required, size, * |
small | * |
span | * |
sub | * |
sup | * |
strong | * |
table | width, border, align, valign, * |
textarea | autofocus, cols, dirname, disabled, form, maxlength, name, placeholder, readonly, required, rows, wrap, * |
tbody | align, valign, * |
td | width, rowspan, colspan, align, valign, * |
tfoot | align, valign, * |
th | width, rowspan, colspan, align, valign, * |
thead | align, valign, * |
tr | rowspan, align, valign, * |
tt | * |
u | * |
ul | * |
video | autoplay, controls, loop, preload, src, height, width, * |