所有 HTML attribute - prop 对照表

attr
global
tags
prop
aria-activedescendant
true
all
 
aria-atomic
true
all
 
aria-autocomplete
true
all
 
aria-busy
true
all
 
aria-checked
true
all
 
aria-colcount
true
all
 
aria-colindex
true
all
 
aria-colspan
true
all
 
aria-controls
true
all
 
aria-current
true
all
 
aria-describedat
true
all
 
aria-describedby
true
all
 
aria-disabled
true
all
 
aria-dropeffect
true
all
 
aria-errormessage
true
all
 
aria-expanded
true
all
 
aria-flowto
true
all
 
aria-grabbed
true
all
 
aria-haspopup
true
all
 
aria-hidden
true
all
 
aria-invalid
true
all
 
aria-kbdshortcuts
true
all
 
aria-label
true
all
 
aria-labelledby
true
all
 
aria-level
true
all
 
aria-live
true
all
 
aria-modal
true
all
 
aria-multiline
true
all
 
aria-multiselectable
true
all
 
aria-orientation
true
all
 
aria-owns
true
all
 
aria-placeholder
true
all
 
aria-posinset
true
all
 
aria-pressed
true
all
 
aria-readonly
true
all
 
aria-relevant
true
all
 
aria-required
true
all
 
aria-roledescription
true
all
 
aria-rowcount
true
all
 
aria-rowindex
true
all
 
aria-rowspan
true
all
 
aria-selected
true
all
 
aria-setsize
true
all
 
aria-sort
true
all
 
aria-valuemax
true
all
 
aria-valuemin
true
all
 
aria-valuenow
true
all
 
aria-valuetext
true
all
 
accesskey
true
all
accessKey
class
true
all
className
contenteditable
true
all
contentEditable
contextmenu
true
all
 
dir
true
all
dir
draggable
true
all
draggable
dropzone
true
all
 
hidden
true
all
hidden
id
true
all
id
itemid
true
all
 
itemprop
true
all
 
itemref
true
all
 
itemscope
true
all
 
itemtype
true
all
 
lang
true
all
lang
role
true
all
 
spellcheck
true
all
spellcheck
style
true
all
style
tabindex
true
all
tabIndex
title
true
all
title
translate
true
all
translate
manifest
false
html
 
href
false
base,link,a,area
href
target
false
base,a,area,form
target
crossorigin
false
link,img,video,audio,script
crossOrigin
rel
false
link,a,area
rel
media
false
link,style
media
hreflang
false
link,a,area
 
type
false
link,style,ol,a,embed,object,source,area,input,button,script
type
sizes
false
link
sizes
name
false
meta,iframe,object,param,map,form,input,button,select,textarea,output,fieldset
name
http-equiv
false
meta
httpEquiv
content
false
meta
content
charset
false
meta,script
charset
nonce
false
style,script
nonce
scoped
false
style
 
onafterprint
false
body
onafterprint
onbeforeprint
false
body
onbeforeprint
onbeforeunload
false
body
onbeforeunload
onhashchange
false
body
onhashchange
onlanguagechange
false
body
onlanguagechange
onmessage
false
body
onmessage
onoffline
false
body
onoffline
ononline
false
body
ononline
onpagehide
false
body
onpagehide
onpageshow
false
body
onpageshow
onpopstate
false
body
onpopstate
onstorage
false
body
onstorage
onunload
false
body
onunload
cite
false
blockquote,q,del
cite
reversed
false
ol
reversed
start
false
ol
start
value
false
li,param,input,button,option,progress,meter
value
download
false
a,area
download
ping
false
a,area
ping
datetime
false
time,del
dateTime
alt
false
img,area,input
alt
src
false
img,iframe,embed,video,audio,source,track,input,script
src
srcset
false
img
srcset
usemap
false
img,object
useMap
ismap
false
img
isMap
width
false
img,iframe,embed,object,video,input,canvas
width
height
false
img,iframe,embed,object,video,input,canvas
height
srcdoc
false
iframe
srcdoc
sandbox
false
iframe
sandbox
seamless
false
iframe
 
allowfullscreen
false
iframe
allowFullscreen
data
false
object
data
typemustmatch
false
object
 
form
false
object,label,input,button,select,textarea,output,fieldset
form
poster
false
video
poster
preload
false
video,audio
preload
autoplay
false
video,audio
autoplay
mediagroup
false
video,audio
 
loop
false
video,audio
loop
muted
false
video,audio
muted
controls
false
video,audio
controls
default
false
track
default
kind
false
track
kind
label
false
track,optgroup,option
label
srclang
false
track
srclang
coords
false
area
coords
shape
false
area
shape
sortable
false
table
 
border
false
table
border
span
false
colgroup,col
span
colspan
false
td,th
colSpan
rowspan
false
td,th
rowSpan
headers
false
td,th
headers
scope
false
th
scope
sorted
false
th
 
abbr
false
th
abbr
accept-charset
false
form
acceptCharset
action
false
form
action
autocomplete
false
form,input,select,textarea
autocomplete
enctype
false
form
enctype
method
false
form
method
novalidate
false
form
noValidate
for
false
label,output
htmlFor
accept
false
input
accept
autofocus
false
input,button,select,textarea
autofocus
checked
false
input
checked
dirname
false
input,textarea
dirName
disabled
false
input,button,select,optgroup,option,textarea,fieldset
disabled
formaction
false
input,button
formAction
formenctype
false
input,button
formEnctype
formmethod
false
input,button
formMethod
formnovalidate
false
input,button
formNoValidate
formtarget
false
input,button
formTarget
inputmode
false
input,textarea
inputMode
list
false
input
list
max
false
input,progress,meter
max
maxlength
false
input,textarea
maxLength
min
false
input,meter
min
minlength
false
input,textarea
minLength
multiple
false
input,select
multiple
pattern
false
input
pattern
placeholder
false
input,textarea
placeholder
readonly
false
input,textarea
readOnly
required
false
input,select,textarea
required
size
false
input,select
size
step
false
input
step
selected
false
option
selected
cols
false
textarea
cols
rows
false
textarea
rows
wrap
false
textarea
wrap
low
false
meter
low
high
false
meter
high
optimum
false
meter
optimum
open
false
details
open
async
false
script
async
defer
false
script
defer
posted @ 2018-12-18 16:04  Inshua  阅读(453)  评论(0编辑  收藏  举报