+ 5

what is the role of an attribute in html ?

html

21st Feb 2018, 7:50 PM
R.Ravichandran
R.Ravichandran - avatar
9 Respuestas
+ 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.
21st Feb 2018, 7:56 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
attributes help you to put option in your design.
3rd Mar 2018, 12:07 AM
Justine Absolid
Justine Absolid - avatar
+ 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.
5th Mar 2018, 6:35 AM
Nishant Ranjan
Nishant Ranjan - avatar
+ 2
it specifies behaviour of html tags
8th May 2018, 3:41 PM
Vijay Srinivasan
Vijay Srinivasan - avatar
+ 1
an attribute modified the html element.
4th Apr 2018, 7:01 AM
Edith Rono
Edith Rono - avatar
+ 1
It modifies the tag
4th Nov 2020, 2:35 PM
Anagha E
+ 1
it modifies the tag
7th Oct 2021, 6:33 AM
sai sushma
sai sushma - avatar
0
It Modifies the Tag
7th Oct 2021, 6:34 AM
V.Haritha Naga Neha