img in noscript before body Web Standard

Description

Body elements like img are not allowed in noscript before body.

Help

Any img that appears before body implicitly ends the head element and starts the body element. If the img appears inside noscript then this only happens when scripting is disabled, leading to DOM inconsistencies with browser APIs like XMLHttpRequest.response and DOMParser.parseFromString() which parse HTML with scripting disabled.

Applicable standards

Change history

  • 6.50 Oct 2023 No longer fails WCAG 4.1.1.
  • 6.47 Dec 2022 Added.

This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.

Rule ID: W3cHtml5Error-errBadStartTagInNoscriptInHead-img