Either:
- Add a heading (
h1
, …,h6
) tag to yoursection
element. - Replace your
section
element with adiv
element. - Ignore the warning. The message you’re seeing is a non-normative usage recommendation, as per the HTML5 spec (highlighting mine):
The theme of each
section
should be identified, typically by
including a heading (h1
–h6
element) as a child of thesection
element.
Related Contents:
- Are (non-void) self-closing tags valid in HTML5?
- Should I use tag for icons instead of ? [closed]
- input type=”submit” Vs button tag are they interchangeable? [duplicate]
- vs vs for inline and block code snippets
- Is a DIV inside a TD a bad idea?
- Using custom HTML Tags
- Should a heading be inside or outside a ?
- Valid to use (anchor tag) without href attribute? [duplicate]
- HTML5 nested sections and heading tags
- Are block-level elements allowed inside inline-level elements in HTML5?
- Can I use non existing CSS classes?
- Is there a valid way to disable autocomplete in a HTML form?
- ‘div’ inside ‘table’
- Why can’t a element contain a ?
- Markup for postal addresses
- Most common way of writing a HTML table with vertical headers?
- Why not use tables for layout in HTML? [closed]
- POST unchecked HTML checkboxes
- How to hide a text and make it accessible by screen reader?
- Why does my XPath query (scraping HTML tables) only work in Firebug, but not the application I’m developing?
- How to make CSS3 rounded corners hide overflow in Chrome/Opera
- Why does the browser renders a newline as space?
- HTML5 best practices; section/header/aside/article elements [closed]
- “X-UA-Compatible” content=”IE=9; IE=8; IE=7; IE=EDGE”
- How does the “position: sticky;” property work?
- Why do absolute elements stack up on each other instead of stacking one after the other?
- Matching the first/nth element of a certain type in the entire document
- Using flex order property to re-arrange items for desktop and mobile views
- How to add 1px margin to a flex item that is flex: 0 0 25%?
- Removing whitespace between HTML elements when using line breaks
- Get img thumbnails from Vimeo?
- What are the integrity and crossorigin attributes?
- Which are the standard W3C meta tags?
- CSS background-size: cover replacement for Mobile Safari
- How To Auto-Format / Indent XML/HTML in Notepad++
- Best approach to real time http streaming to HTML5 video client [closed]
- html links not working (using base href)
- Link a .css file in another folder
- Cross domain ajax request
- How to make in CSS an overlay over an image?
- Disable spell-checking on HTML textfields
- Adding http request header to a a href link [duplicate]
- Add a pipe separator after items in an unordered list unless that item is the last on a line
- add title attribute from css
- Using :after to clear floating elements
- HTML Multiselect Limit
- Is div inside list allowed? [duplicate]
- How can I increase a scrollbar’s width using CSS?
- Change color of bootstrap navbar on hover link?
- How to have quotation marks in HTML input values [duplicate]