Technical Documentation Page - Build a Technical Documentation Page

Hello everybody, this is my code so far, I can’t understand why I can’t complete the following step: " Each .main-section should have an id that matches the text of its first child, having any spaces in the child’s text replaced with underscores (_ ) for the id’s." Thank you

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">
<link rel="stylesheet" href="./styles.css"> </head>
<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>














</main> </body>

</html>
/* file: styles.css */

Your browser information:

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

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

1 Like

Check the id for the second section

1 Like

Solved! Thank you, I will be more careful!

1 Like

No problem! Happy coding!

1 Like

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