What's wrong here ? Why this is showing error?

Tell us what’s happening:

Your code so far


<!DOCTYPE html>
<html><h1>
   <head>head tag</head>
<h1>h1 tags</h1>
<body><h1>h1 element</h1></body>
<footer><h1>h1 element</h1></footer>
</h1>
</html>

Your browser information:

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

Challenge: Declare the Doctype of an HTML Document

Link to the challenge:

Hi @sharmayogesshh!

Welcome to the forum!

For this challenge you only need one doctype, one set of html tags and one set of h1 tags

<!--doctype goes here-->
     <!--html opening goes here-->
           <!--h1 tags go here -->
      <!--html closing-->

Hope that helps!