CSS Tutorial for Beginners Part 4 - CSS Selectors (Class Selector, Comments)

Опубликовано: 19 Май 2026
на канале: Learn Web Technologies
54
3

HTML Playlist
   • Html tutorial for beginners  

Text Version for same
http://learnwebtechnology.ga/2019/04/...

Sign up for my newsletter to receive weekly updates
http://bit.ly/2RRFktj

Join our facebook page
bit.ly/2OKQYV7

CSS Selectors
CSS selectors are used to select HTML elements based on their element name, id, class, attribute, and more.

The class Selector
The class selector selects elements with a specific class attribute.
To select elements with a specific class, write a period (.) character, followed by the name of the class.
Note: HTML elements can also refer to more than one class.

Grouping Selectors
If you have elements with the same style definitions, like this:
It will be better to group the selectors, to minimize the code.
To group selectors, separate each selector with a comma.

CSS Comments
Comments are used to explain the code, and may help when you edit the source code at a later date.
Comments are ignored by browsers.
A CSS comment starts with /* and ends with */. Comments can also span multiple lines:

----------------------------------------------------------------------------------------------------------------

#LearnWebTechnologies #CSS