I couldn't pass about this topic, Declare the Doctype of an HTML Document

Tell us what’s happening:
The html tags should wrap around one h1 element.

Your code so far



<!DOCTYPE html>
<html>
<body>
    <h1>This is test heading</h1>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/declare-the-doctype-of-an-html-document/

You’ve provided the issue in your question. “The html tags should wrap around one h1 element” in your code it wraps around 2 elements, the body tag, and the h1 tag. Remove the body tag and run.

This is gonna be an invalid code, Yintii

What you have done is correct, but this test doesn’t need the <body></body> tag, check the instructions you would understand.