Topic: CSS Basics

Select a descendant – CSS

Preview

To select a descendant of an HTML element, use 2 selectors separated by a space:

.class-name p {}

To view this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.