0% found this document useful (0 votes)
14 views

CSS Selectors

The document discusses different types of CSS selectors including element, class, and ID selectors. Element selectors select entire elements by tag name, class selectors select elements with a certain class, and ID selectors select elements with a specific ID.

Uploaded by

Bairon Dubon
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

CSS Selectors

The document discusses different types of CSS selectors including element, class, and ID selectors. Element selectors select entire elements by tag name, class selectors select elements with a certain class, and ID selectors select elements with a specific ID.

Uploaded by

Bairon Dubon
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

CSS Selectors

What is a selector?

 Selectors are ways of grabbing and manipulating HTML.

 There are many different ways to select, however they all


turn out the same way.

 Different selectors have different applications.


Selectors: The Element Selector

 You can select entire elements without any special


characters.

 This applies to all of the elements with that tag on the page.

 It ranks on the bottom of the specificity scale.


Selectors: The Class Selector

 This is used to select elements with a certain class name.

 Can be used on any and all elements with that class.

 Can be used multiple times, and is select with the . symbol.


Selectors: The ID Selector

 This is used to select elements with a certain ID name.

 Can be used on any and all elements with that ID

 Unlike classes, it can only be used on one element at a time,


and is selected with the # symbol. However, it is possible to
use more than once.

You might also like