Selectors in CSS - [Every beginner should know this 5 css selectors]

Опубликовано: 13 Март 2022
на канале: Quick Code Academy
52
0

Learn all types of css selectors in 10 minutes
CSS selectors are used to "find" (or select) the HTML elements you want to style. We can divide CSS selectors into five categories: Simple selectors (select elements based on name, id, class) Combinator selectors (select elements based on a specific relationship between them)

Chapters:
0:00 CSS Selector Introduction
00:11 Why do we need CSS selectors
00:30 All simple css selectors
00:58 Universal Selector
The universal selector (*) selects all HTML elements on the page.
02:29 element Selector
The element selector selects HTML elements based on the element name.
03:56 id Selector-The id selector uses the id attribute of an HTML element to select a specific element.
The id of an element is 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.
05:31 CSS class Selector-The class selector selects HTML elements with a specific class attribute.
To select elements with a specific class, write a period (.) character, followed by the class name.
08:29 Grouping Selector -The grouping selector selects all the HTML elements with the same style definitions.


Смотрите видео Selectors in CSS - [Every beginner should know this 5 css selectors] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Quick Code Academy 13 Март 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 52 раз и оно понравилось 0 людям.