Tell us what’s happening:
Hello, I have problem with header part of code and get this massage:“Failed: None of your header elements should be empty.” I can’t find the solution??
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang-"en">
<header>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Technical Documentation Page</title>
<link href="css/style.css" rel="stylesheet">
</header>
<body>
<main id="main-doc">
<section class="main-section" id="Introduction">
<header>Introduction</header>
</section>
<section class="main-section" id="What_you_should_already_know">
<header>What you should already know</header>
</section>
<section class="main-section" id="JavaScript_and_Java">
<header>JavaScript and Java</header>
</section>
<section class="main-section" id="Hello_world">
<header>Hello world</header>
</section>
<section class="main-section" id="Variables">
<header>Variables</header>
</section>
<section class="main-section" id="Declaring_variables" >
<header>Declaring variables</header>
</section>
<section class="main-section" id="Variable_scope">
<header>Variable scope</header>
</section>
<section class="main-section" id="Global_variables">
<header>Global variables</header>
</section>
<section class="main-section" id="Constants">
<header>Constants</header>
</section>
<section class="main-section" id="Data_types">
<header>Data types</header>
</section>
<section class="main-section" id="If_else_statement">
<header>If else statement</header>
</section>
</main>
</body>
</html>
/* file: styles.css */
.main-section header { visibility: hidden; height: 0; margin: -0.5rem; padding: 0; }
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Challenge: Technical Documentation Page - Build a Technical Documentation Page
Link to the challenge: