So what's wrong with my <h1> element?

Tell us what’s happening:

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10323.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.209 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/

Your h1 tag is not closed. Try:

<h1> header </h1>
1 Like
<h1></h1>

You should write like this.

1 Like

Hey @mathieu01, most HTML tags have an opening and closing tag with some stuff in-between. Your <h1> tag needs a closing </h1> tag, and some text between the two tags, like this:
<h1>I am H1 Text</h1>

1 Like