2014-07-08, 22:43:38
For demo purposes I must create a site that uses the default "Innovation" theme and that will be 100% valid HTML-5.
Unfortunately, the specific use of the <article> and <section> tags in the theme's template.php generate HTML-5 warnings (I'm using "validator.nu engine" to run the checks):
Thanks for any help and/or suggestions!
Unfortunately, the specific use of the <article> and <section> tags in the theme's template.php generate HTML-5 warnings (I'm using "validator.nu engine" to run the checks):
- <article> used without heading:
Quote:Line 62, column 11: Article lacks heading.
- <section> within <article> contains <h1>:
Quote:Line 66, column 8: Consider using the h1 element as a top-level heading only.
- All of the page's content, including the page's title (the <h1>), ends up between the <section></section> tags. So every page is an article (without header) with one section containing the entire content.
- The theme's css file uses both article and section to define the theme's layout.
- According to HTML-5 rules <div> should be used to split up a page based on layout, whereas <article> and <section> should be used to semantically split up a page based on (independent blocks of) content, each article/section with its own header (<h1> for article, <h2>-<h6> for section).
Thanks for any help and/or suggestions!