Ids and Classes in HTML
Hello friends here we are going to see about Ids and Classes in HTML . So Id is an attribute which is given to an element to apply CSS or JS on it . If you have so many divisions <div>... </div> in HTML body and you want to apply CSS on specific division <div>... </div> then you have to give a id for that division. Class is also a attribute but you can give class to multiple divisions. So take example like if you're in 8th class and all students in your class have a different identity card but have same class simple. Class is denoted by ' . ' dot sign and Id is denoted by ' # ' sign. I hope you understand better. Now take a look some code .
This will result as follows :
You can use class and Id in JAVASCRIPT also. If you have any doubts ask in comment section.

