Skip to content

Improper Use of <h2> Tag Inside <ul> Element #27

@madebysergio

Description

@madebysergio

Issue: Improper use of h2 tag inside ul element

  • The source code for 17-make-it-count includes an h2 tag within a ul.
    • According to HTML standards, heading tags like h2 should not be placed directly inside a ul. This can lead to rendering issues and is not semantically correct.

Expected Behavior

  • HTML should follow proper structure and semantics. The ul tag should contain only list items li, and headings should be placed outside the list.
    • Additionally, an h2 tag is only valid if placed within a list item, li tag.

Screenshot of issue:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug hunter challengewww.codedex.io/community/monthly-challenge/october-2023

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions