Cannot declare doctype

Tell us what’s happening:
Describe your issue in detail here.
the challenge is to declare doctype of an html document
i wrapped 1 h1 between an opening and closing html tag.
ive done everything it has asked me to do but its not right.
what am i doing wrong

  **Your code so far**

<!DOCTYPE html>
<html> 
<h1> hello!
 </html>

  


  **Your browser information:**

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

Challenge: Declare the Doctype of an HTML Document

Link to the challenge:

HI @taoa15067 !

Welcome to the forum!

You are missing your end tag for the h1 here

Once you add that then the test will pass.

i just tried and it didnt work

Can you share your latest code?

Here is how to write code in the forum.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

<!DOCTYPE html>  
<h1> hello! </h1>
</html>

sorry i see what i did wrong, i got it, thankyou so much

1 Like
<!DOCTYPE html>
<html>
<h1> hello! </h1>
</html>

(don’t forget your closing tag.)
These challenges can be very strict or very specific. Be sure to proof read your code against the tests pass or no pass standards at the very bottom left of the challenge over view.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

I also added spoiler tags around your code.

Please don’t hand out full solutions.

It is best to help users by guiding them with hints.

But also, the user has already figured out the issue and passed the tests :smiley:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.