Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

selectors combinators css

/* selects any <span> that is inside a <p>, which is inside an <article>  */
article p span { ... }

/* selects any <p> that comes directly after a <ul>, which comes directly after an <h1>  */
h1 + ul + p { ... }
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #selectors #combinators #css
ADD COMMENT
Topic
Name
5+9 =