Media and Interactive Content Pseudo-Elements

Learn to style media and interactive content with pseudo-elements: ::backdrop, ::cue, etc.

This lesson focuses on pseudo-elements that interact with media elements and user interface components like dialogs and captions.

::backdrop

The ::backdrop pseudo-element styles the backdrop of elements such as modals or dialogs when they are active.

Get hands-on with 1400+ tech skills courses.