On HTML5 and outdated, legacy browsers

In IE7 or older IE browsers, you won’t be able to target CSS rules to HTML5 elements, like this:

section {color: red}
Instead though, you can use the following weird code:
[section] {color: red}
<section section="true">It was a dark and stormy night</section>

Leave a Reply

Your email address will not be published. Required fields are marked *