HTML attribute: Difference between revisions

Content deleted Content added
wrote lead
Line 1:
{{Html series}}
An '''HTML attribute''' is a modifier of an [[HTML element]]. They modify the action of a [[HTML tag]], which along with ''content'' comprises the HTML element. Particular attributes are only supported by particular tags; if they are added to tags that do not support them they will not function. Some attributes are ''required attributes'', needed by particular tags 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 tags; they include ''event attributes'', which trigger elements to specify scripts to be run under specific circumstances.
An '''HTML attribute''' is a modifier of an [[HTML element]]. HTML attributes generally appear as name-value pairs, separated by "=", and are written within the start tag of an element, after the element's name:
 
==Description==
An '''HTML attribute''' is a modifier of an [[HTML element]]. HTML attributes generally appear as name-value pairs, separated by "=", and are written within the start tag of an element, after the element's name:
:<''tag'' ''attribute''="''value''">''(content to be modified by the tag)''</''tag''>
::Where ''tag'' names the HTML element, ''attribute'' is the name of the attribute, set to the provided ''value''.