Skip to content

Duplicate <body> tag found in Typing Game HTML file #1545

@MohitMehtre

Description

@MohitMehtre

Describe the bug
In the Typing Game module, the index.html file contains two tags, which violates standard HTML structure. A valid HTML document must have only one tag. This can lead to rendering inconsistencies or prevent JavaScript from executing properly in some browsers.

To Reproduce

  1. Steps to reproduce the behavior:
  2. Navigate to the project folder: 4-typing-game
  3. Open the index.html file in any code editor
  4. Scroll through the file
  5. Observe that there are two tags defined

Expected behavior
There should only be a single tag per HTML file. All page content should be placed within that one body.

Screenshots
N/A — the issue is visible by inspecting the HTML file directly.

Desktop (please complete the following information):

  • OS: Windows 10 / macOS / Linux
  • Browser Chrome, Firefox, Edge (any)
  • Version Not browser-specific (this is a code issue)

Smartphone (please complete the following information):

  • Device: NA
  • OS: NA
  • Browser NA
  • Version NA

Additional context
This bug was discovered while working on enhancements to the Typing Game. It was not mentioned in the related issue, but it has been addressed as part of the pull request. Removing the duplicate tag helps maintain valid HTML and prevents possible layout or script execution issues.

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