question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Define the Head and Body of an HTML Document | Can pass tests without a body tag

See original GitHub issue

Describe your problem and how to reproduce it: The request for this problem is: Edit the markup so there's a head and a body. The head element should only include the title, and the body element should only include the h1 and p.
However, all the tests pass even without a body tag, including these two tests specifically checking for it:

  • There should be only one body element on the page.
  • The body element should wrap around both the h1 and p elements.

Code that will pass:

<!DOCTYPE html>
<html>
<head>
    <title>The best page ever</title>
</head>

<h1>The best page ever</h1>
<p>Lorem Ipsum</p>
</html>

Add a Link to the page with the problem: https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/define-the-head-and-body-of-an-html-document

Tell us about your browser and operating system:

  • Browser Name: Chrome
  • Browser Version: 73
  • Operating System: Windows 10

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box): page

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
AlyxMooncommented, Apr 9, 2019

Yeah I’ve got no attachment to this, have fun with it @sil3nthill

1reaction
RandellDawsoncommented, Apr 9, 2019

@sil3nthill Since we have not seen a PR from @AlyxMoon yet, go ahead an create a PR to fix this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Basic HTML and HTML5: Define the Head and Body of an ...
When i click “Run the Tests”, it shows the following: [Right] There should be only one head element on the page. [Right] There...
Read more >
Explain the significance of <head> and <body> tag in HTML
Significance of HTML <body> tag: The HTML body tag is the last child of the <html> tag. It is used to contain the...
Read more >
Define the Head and Body of an HTML Document ... - YouTube
Learn to define the head and body of an HTML document. This is basic HTML stuff which you will know and love for...
Read more >
Why are html,head or body tags necessary? - Codecademy
Why are html,head or body tags necessary? Even if we write the code without html tag it works. Even if we write title...
Read more >
HTML head tag - W3Schools
Metadata typically define the document title, character set, styles, scripts, and other meta information. The following elements can go inside the <head> ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found