Define the Head and Body of an HTML Document | Can pass tests without a body tag
See original GitHub issueDescribe 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):
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah I’ve got no attachment to this, have fun with it @sil3nthill
@sil3nthill Since we have not seen a PR from @AlyxMoon yet, go ahead an create a PR to fix this issue.