Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
noiiyfdedvv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
noiiyfdedvv
3y ago
Good point. Apparently (MDN) there should only be 1 main on a page, and it should not include sidebars, generic headers/footers repeated on other pages, etc. So, you might have a site-wide header, a main containing a content-specif
2.
▲
by
noiiyfdedvv
3y ago
I was curious so I checked. According to MDN: > Permitted parents: Any element that accepts flow content. Note that a <header> element must not be a descendant of an <address>, <footer> or another <header> element
3.
▲
by
noiiyfdedvv
3y ago
There’s a little typo in the simple example: <main> <header> </header> <section> </section> <section> </section> <section> </section>