![]() |
VOOZH | about |
A scope element forms a context for a block of styles. That element provides a reference point for selectors to be matched against. A scope element is defined using the scoped attribute. Styles declared with scoped attributes will be applied to all elements inside its parent element.
Syntax:
:scope
Example 1:
Output:
Example 2:
Output:
Browser Support: