Why the html element has two classes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why the html element has two classes

it is often accepted that a html element contains a class but in the jquery two classes were added which is not clear enough. though, what is the purpose of two classes for a html element

25th May 2019, 3:22 PM
akinsoji hammed adisa
akinsoji hammed adisa - avatar
1 Answer
0
Don't get it twisted with the class thing in html and jQuery cos they two different packages. Html class is just like hypertext reference to different classes created in its CSS style. JQuery classes are like tools used for instantiation by an object reference. Go back to basics and learn more bro..
6th Jun 2019, 3:56 PM
Charles Nduka
Charles Nduka - avatar