214k views
0 votes
What is a class in CSS?

a grouping of HTML tags for which style properties can be declared
a selector used to define a unique style
a tag used to apply styles to a block of content
the part of a declaration describing the type of style to be applied

2 Answers

3 votes

A tag used to apply styles to a block of content.

User Cyotee Doge
by
3.8k points
1 vote

Answer- A: a grouping of HTML tags for which style properties can be declared

Explanation: "In CSS, a class is a group of elements that are the same or similar. You can have as many elements as you want in a class. And each element can be the member of multiple classes. Every class has CSS attributes (like color and font-size) that are specific to that class. CSS classes are similar to a real-life class." skillcrush.com

User HaBaLeS
by
4.3k points