microsoft / microsoft/Web-Dev-For-Beginners

Duplicate <body> tag found in Typing Game HTML file

Open
#1,545 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
Dominant language
JavaScript
Stars
96.7k
Forks
15.9k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open 4-typing-game/index.html and inspect the document structure, starting with the duplicate body tags described in the issue. Confirm the file has one body element and verify that the Typing Game page and its scripts still load correctly in a browser.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.