Skip to content

<pre> does not belong into a <p> #8

Description

@0xEAB

A <pre> element does not belong into a <p> element.
The browser will end the paragraph when it encounters a preformatted-text element. The closing tag of the terminated paragraph is then considered a stray tag and gets its own empty element.

Image

This issue is found on error pages like the “404 - Not Found” page.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions