Topic: CSS Basics

Select a child – CSS

Preview

To select an immediate child of an HTML element, use 2 selectors separated by a greater than sign:

.class-name > p {}

To view the full tutorial, sign up for a free trial on our Sign Up page.