- 1
How many types of attributes we have ??
Attributes..
7 Respuestas
0
Thank you for your reply.
damyco
I am asking.
we have 2 types of Attributes.
what are those ?
purpose of that?
0
Can you give an example?
0
Yeah Sure .
we have 2 types of Attributes.
in that
1.Global Attributes
this attribute
we can use for all tags.....
Ex:
style, Id, class ... these types of Attributes
0
You can use them to name, group, style also target and manipulate with JS. Every attribute does different thing to given element.
example here using id and class to style elements with css
https://code.sololearn.com/W070MKVJbHPP/?ref=app
0
we have one more type of Attribute also
That is .
*Tag Specified Attributes*
0
some attributes are only used in certain tags and cannot be used in other if that makes sense