CSS Adjacent sibling selectors

CSS Adjacent sibling selectors

by Nguyễn Đình Quân

HTML

<p>This is <em>em text</em> and more <strong>strong text</strong></p>
<p>This is <strong>strong text</strong> and more <em>em text</em></p>

CSS

em + strong {color: green; }