0

What is class attribute function?

we see "class" attribute in so many html tags what is it for? what does it define? and what are its values?

2nd Jan 2018, 7:30 PM
ali. ht56
ali. ht56 - avatar
1 Answer
0
You Refer to an Element via class in Css and Js its Same As Id class by . and Id by # <div class="E1">Text</div> Css: .E1{ background-color:red; } Js: document.getElementbyClass("E1");
2nd Jan 2018, 8:15 PM
Elie Douaihy
Elie Douaihy - avatar