Learn Accessibility by Building a Quiz - Step 6

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

so I can’t pass that one, the site ask me to add to the body header and main elements, so I did that, but he say that I need to add a main to the body… what am I doing wrong ?

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
 <head>
   <meta charset="UTF-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <meta name="description" content="freeCodeCamp Accessibility Quiz practice project" />
   <title>Accessibility Quiz</title>
   <link rel="stylesheet" href="styles.css" />
 </head>
 <body>

   <header>
   <header/>

   <main>
   <main/>

 </body>
</html>

/* file: styles.css */
body {
	background: #f5f6f7;
	color: #1b1b32;
	font-family: Helvetica;
	margin: 0;
}
   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

Challenge: Learn Accessibility by Building a Quiz - Step 6

Link to the challenge:

Elements only end in ‘/>’ when they’re self-closing elements, in other words elements that only need one tag, e.g. <meta charset="UTF-8"/> .

The head and main elements are not self-closing, therefore they must end in </head> and </main> respectively.

1 Like

Thank you! that’s the solution