CSS element elementSelectors
Complete CSS Selector Reference Manual
Example
Select all <p> elements inside the <div> element:
div p {
background-color:yellow;
}
Try it Yourself »
Definition and Usage
The element element selector is used to select elements inside other elements.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support itelement,elementSelector.
Complete CSS Selector Reference Manualother extensions