VC3004: Element can't go there

warning All diagnostics

The element can't go where it is, so the browser rearranges the page while parsing it. The layout and styles then differ from the markup. The checks are:

  • <a> or <button> inside another <a> or <button>
  • block-level elements (<div>, <ul>, <h2>, <p>...) inside a <p>: the browser ends the paragraph first
  • anything but <li> directly inside <ul> or <ol>, and anything but <dt>, <dd> or <div> directly inside <dl>

How to fix

Change the outer element (a <div> instead of a <p>), or wrap the inner one (in an <li>).