Skip to content

Invalid HTML Attributes in Dropdown Menus (Bug) #2

Description

@codeCraft-Ritik

In the sign-up form components, there is a clear HTML validation error regarding the date of birth dropdowns.

Location : signup-forms/index.html

The Issue:
The <select> tags use an invalid type attribute (e.g., <select type="day"> and <select type="month">). The type attribute is used for <input> elements, not <select> elements.

The Second Issue :
The "Year" dropdown is incorrectly labeled with type="month"

How to Fix :
Replace the type attribute with name and id attributes (e.g., ) to ensure the forms function correctly when submitted and validate perfectly.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions