Actions

::HTML attribute

::concepts

Title::style    Class::onkeyup    Onclick::element    Object::align    Table::input    Applet::frame

{{#invoke:Sidebar|sidebar | titleclass = navbox-title | title = HTML | headingclass = navbox-abovebelow | contentclass = plainlist | contentstyle = padding-top:0.2em;padding-bottom:0.8em;

| content1 =

| heading2 = Comparisons | content2 =

 {{#invoke:Sidebar|sidebar}}

| navbarstyle = border-top:1px solid #aaa;

}} An HTML attribute is a modifier of an HTML element type. An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them. In HTML syntax, an attribute is added to an HTML start tag.

Several basic attributes types have been recognized, including: (1) required attributes, needed by a particular element type for that element type to function correctly; (2) optional attributes, used to modify the default functionality of an element type; (3) standard attributes, supported by a large number of element types; and (4) event attributes, used to cause element types to specify scripts to be run under specific circumstances.

Some attribute types function differently when used to modify different element types. For example, the attribute name is used by several element types, but has slightly different functions in each.<ref name="html4attributes">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>


HTML attribute sections
Intro  Description  Varieties  Required and optional HTML attributes  Standard attributes  References  

PREVIOUS: IntroNEXT: Description
<<>>