Interview Questions

What is a class in CSS?

ASP Interview Questions and Answers


(Continued from previous question...)

139. What is a class in CSS?

Answer1
A class allows you to define different style characteristics to the same HTML element.

Answer2
class is a child to the id, id should be used only once, a css class can be used multiple times:
div id=”banner”
p class=”alert”

(Continued on next question...)

Other Interview Questions