CSS Tutorial for Beginners Part 25 - CSS Combinators | Learn Web Technologies

Опубликовано: 26 Март 2026
на канале: Learn Web Technologies
45
2

CSS Playlist
   • CSS Tutorial for Beginners  

HTML Playlist
   • Html tutorial for beginners  

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

Join our facebook page
bit.ly/2OKQYV7

CSS Combinators
A combinator is something that explains the relationship between the selectors.

A CSS selector can contain more than one simple selector. Between the simple selectors, we can include a combinator.

There are four different combinators in CSS:

descendant selector (space)
child selector (greater than symbol)
adjacent sibling selector (+)
general sibling selector (~)

Descendant Selector
The descendant selector matches all elements that are descendants of a specified element.

Child Selector
The child selector selects all elements that are the children of a specified element.

Adjacent Sibling Selector
The adjacent sibling selector selects all elements that are the adjacent siblings of a specified element.

Sibling elements must have the same parent element, and "adjacent" means "immediately following".

General Sibling Selector
The general sibling selector selects all elements that are siblings of a specified element.

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

#LearnWebTechnologies #CSS #CSSTutorialForBeginners