- 1

How many types of attributes we have ??

Attributes..

15th Jun 2018, 5:45 PM
Vijay EVN
Vijay EVN - avatar
7 Réponses
15th Jun 2018, 5:55 PM
damyco
damyco - avatar
0
Thank you for your reply. damyco I am asking. we have 2 types of Attributes. what are those ? purpose of that?
15th Jun 2018, 6:00 PM
Vijay EVN
Vijay EVN - avatar
0
Can you give an example?
15th Jun 2018, 6:01 PM
damyco
damyco - avatar
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
15th Jun 2018, 6:04 PM
Vijay EVN
Vijay EVN - avatar
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
15th Jun 2018, 6:12 PM
damyco
damyco - avatar
0
we have one more type of Attribute also That is . *Tag Specified Attributes*
15th Jun 2018, 6:14 PM
Vijay EVN
Vijay EVN - avatar
0
some attributes are only used in certain tags and cannot be used in other if that makes sense
15th Jun 2018, 6:17 PM
damyco
damyco - avatar