HTML and CSS Reference
In-Depth Information
Table 3-8. ( continued )
Attribute
Element(s)
Description
Value
typemustmatch
object
Determines whether the type
attribute and the Content-Type
value need to match the resource
Boolean attribute
usemap
img , object
Image map to use
Hash-name reference
value
button , option
Value to be used for form
submission
Text
value
data
Machine-readable metadata
Text
value
input
Form control value
Varies
value
li
Ordinal value of the list item
Integer
value
meter , progress
Current value of the element
Floating point number
value
param
Parameter value
Text
width
canvas , embed , iframe , img ,
input , object , video
Horizontal dimension
Non-negative integer
wrap
textarea
soft | hard
Wrap type of the form control
(form submission)
The global attributes and event handlers are described in the following sections by category.
Global Attributes
Table 3-9 summarizes those attributes that can be applied to all HTML5 elements.
Table 3-9. Global HTML5 Attributes
Attribute
Value
accesskey
List of unique space-separated key labels
class
Set of space-separated tokens (class name)
contenteditable
true | false | "" | empty
dir
ltr | rtl
hidden
hidden | "" | empty
id
Identifier
lang
Language code
spellcheck
true | false | "" | empty
style
String (style definition)
tabindex
Integer
title
Normal character data (text)
translate
yes | no
 
 
Search WWH ::




Custom Search