0
3.7kviews
Explain in detail the different CSS3 selectors with an example.

Subject: Advanced Internet Technology

Topic: Responsive web design with HTML5 and CSS3

Difficulty: Low

1 Answer
0
13views

1.Type selector

Selects all elements that match the given node name.

  • Syntax: eltname
  • Example: input will match any <input> element.

2.Class selector

Selects all elements that have the given class attribute.

  • Syntax: .classname
  • Example: .index will match any element that has a class of "index".

3.ID selector

Selects an element …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.