Is my code was wrong?

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


<!DOCTYPE html>
<html>
<h1>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Challenge: Declare the Doctype of an HTML Document

Link to the challenge:

You need to add closing tags for <html> and <h1>. This is needed for most html elements. Take a look at the example that’s given.

<!DOCTYPE html>
<html>

</html>

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Challenge: Declare the Doctype of an HTML Document

Link to the challenge:

Add a closing tag to h1?

<h1></h1>

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


The lesson says
Add a DOCTYPE tag for HTML5 to the top of the blank HTML document in the code editor. Under it, add opening and closing html tags, which wrap around an h1 element. The heading can include any text.

An h1 tag is not the same as an h1 element

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