HTML tag attribute (Definition)

HTML tags have attributes, some of which can be accessed from scripts.

Earlier versions of the browsers required that HTML tag attributes were enclosed in double quotes. More recent browsers also allow the use of single quotes or even no quotes in some cases. This may be useful when enclosing fragments of JavaScript that contain quoted text strings.

See also:Attribute object, Attributes object