4 ms·
it's annoying that it can't be used more than once per page. It would be useful to also have a <content> element, e.g. <article> <header>...</heade
by phpnode 13y ago
it's annoying that it can't be used more than once per page. It would be useful to also have a <content> element, e.g.
<article>
<header>...</header>
<content>...</content>
<footer>...</footer>
</article>
- hober 13y agoIt can be used more than once per page: http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-main-element http://www.whatwg.org/specs/web-apps/current-work/multipage/...
- phpnode 13y agoW3C states explicitly that it can't so this is yet another instance where whatwg and w3c disagree leaving developers wondering what to do. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ma...
- MLR 13y agoMaybe using section there would be acceptable, it's the closest thing I can think of at least.