Difference between revisions of "HTML attribute"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Link to tag.)
(cf)
Line 10: Line 10:
  
 
Although some attributes are used in more than one type of HTML element, they do not necessarily have the same function in different types of elements. For example the attribute name is used by several element types, but has slightly different functions in each.
 
Although some attributes are used in more than one type of HTML element, they do not necessarily have the same function in different types of elements. For example the attribute name is used by several element types, but has slightly different functions in each.
 +
 +
== See also ==
 +
 +
* [[HTML]]
 +
* [[HTML element]]
 +
* [[Tag]]
  
 
== External Links ==
 
== External Links ==
  
 
* [https://en.wikipedia.org/wiki/HTML_attribute HTML attribute] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/HTML_attribute HTML attribute] @ Wikipedia

Revision as of 08:18, 29 August 2015

An HTML attribute is a modifier of an HTML element.

They are usually added to a HTML start tag, which along with content and end tag comprises most HTML elements.

Particular attributes are only supported by particular element types; if they are added to elements that do not support them they will not function.

Some attributes are required attributes, needed by particular element types for them to function correctly; while in other cases they are optional attributes, only needed when something other than the default formatting is required.

Standard attributes are supported by a large number of element types; they include event attributes, which trigger elements to specify scripts to be run under specific circumstances.

Although some attributes are used in more than one type of HTML element, they do not necessarily have the same function in different types of elements. For example the attribute name is used by several element types, but has slightly different functions in each.

See also

External Links