Declare the Doctype of an HTML Document help

Tell us what’s happening:

Your code so far


<!DOCTYPE html>
<html>
  <!-- Your HTML code goes here -->
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36.

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

Pay close attention to the errors you get in the console (bottom of the screen). In this case it tells you:

“The html tags should wrap around one h1 element.”
-J

2 Likes

(tag here <>) html (tag here<>) h1 (with your tags </>) h1
(tag here </>)html

instruction says let The html tags should wrap around one h1 element do that above n you will get it

1 Like

thank you so much for the help and the response

1 Like

For general questions or questions on an introductory topic search first in the forum though the available resources or the already answered topics.
Try also MDN Documentation, it’s a valuable tool to learn more about html elements, css properties, js, DOM manipulation and more…

hi guys i have done this and it wont run

  <h1>Header </h1>
1 Like

"

Header

"

I have this

It says The html tags should wrap around the h1 tag. Pls help.

1 Like

Hi @vmdelpapa!

Welcome to the forum!

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like