There may be any random structure for html markup:
<div id="five">
<main>test</main>
<p>test</p>
<div>test</div>
<ul><li>test</li></ul>
<article>test</article>
</div>
Now, how can I select only html5 elements?
I want to style all html5 elements descendent of id="five" only
like padding: 0; font-size: 1.5em;
etc. but other elements should contain it's own css.
I could write all html5 elements with comma separated tag but it would be so long method.
So, is there any way (single selector or selctor once) for selecting html5 elements only with css or jQuery?
In jQuery How can I select the html5 elements only?
if($(this).prop('tagName') == html5) alert('you need latest browser to run');