+ 5
what is the role of an attribute in html ?
html
9 Réponses
+ 15
Attributes provide additional information about an element.
https://en.m.wikipedia.org/wiki/HTML_attribute
https://www.w3schools.com/htmL/html_attributes.asp
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
+ 3
The attributes are special words used inside the opening tag to control the tag's behaviour. 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.
+ 2
attributes help you to put option in your design.
+ 2
Attribute are words used inside the opening tags of html. Role of attributes are:
⚫ They define the behavior of a tag.
⚫ All HTML elements can have attributes
⚫ Attributes provide additional information about an element
⚫Attributes are always specified in the start tag
⚫Attributes usually come in name/value pairs like: name="value"
⚫ Values of HTML attributes are not case-sensitive.
+ 2
it specifies behaviour of html tags
+ 1
an attribute modified the html element.
+ 1
It modifies the tag
+ 1
it modifies the tag
0
It Modifies the Tag