CSS Tutorial for Beginners Part 3 - CSS Selectors (Element, ID Selector) | Learn Web Technologies

Опубликовано: 06 Апрель 2026
на канале: Learn Web Technologies
39
4

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 element Selector
The element selector selects elements based on the element name.
Example-:
p {
color: red;
text-align: center;
}

The id Selector
The id selector uses the id attribute of an HTML element to select a specific element.
The id of an element should be unique within a page, so the id selector is used to select one unique element!
To select an element with a specific id, write a hash (#) character, followed by the id of the element.
Example:
#para1 {
text-align: center;
color: red;
}
----------------------------------------------------------------------------------------------------------------

Like | Share | Watch | Subscribe
#LearnWebTechnologies #CSS