Ayo, User Story 4 of technical documentation page is suddenly failing. It was fine before and if I try to add a navbar anywhere I start failing having a header as the first element. User Story 4 is " Each element with the class of “main-section” should also have an id comprised of the innerText contained within it, with underscores in place of spaces. The id may include special characters if there are special characters in the respective innerText. (e.g. The that contains the header, “JavaScript & Java”, should have a corresponding id=“JavaScript_&_Jav”
Here is my Codepen: https://codepen.io/Adham380/pen/JjNmvJP
and below, the code…
<!--
Hello Camper!
Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding!
- The freeCodeCamp Team
-->
<head>
<title>The Personal Computer</title>
</head>
<main id="main-doc">
<body>
<nav id="navbar">
<section class="main-section" id="What_is_a_PC?">
<header>
<h1>What is a PC?</h1>
</header>
<p>
A PC is a <code>Personal Computer</code>, which people use to compute stuff.
</p>If you need to <code>calculate</code> something or <code>google</code> why cats hate cucumbers,<br> a PC is your friend.
<p>
It takes a text or button command which the OS interprets as <code>code</code><br> and then translates into something, the hardware of the PC<br>can actually understand, aka <code>binary</code>, aka ones and zeros.
</p>
<p>
You can test it with this text <a href="https://www.rapidtables.com/convert/number/ascii-to-binary.html">here</a>.
</p>
</section>
</nav>
<section class="main-section" id="What_is_it_made_out_of?">
<header>
<h2>
What is it made out of?
</h2>
</header>
<p>
Besides the <code>code</code>, it is made up of the previously<br>mentioned hardware, which actually does<br>all the work. <br>The CPU is the processing unit, which you can think of as a logical brain.<br>sends linear data. Even your old 2GHz CPUs, execute 2 billion (2GHz), cycles, per second, per core!<br>
You can now maybe start to imagine just how fast a Gaming PC<br>with 6-12 cores at up to over 5GHz is.
<p>Keep in mind though, that the architecture of a CPU is still very important. An old 4GHz CPU from 5 years ago<br>, will usually lose against a modern 3GHz one. The architecture is an entire topic that I could not possibly cover within this documentation page.
</p>
</p>
</section>
<section class="main-section" id="What_is_the_difference_between_a_Gaming_PC_and_a_regular_PC?">
<header>
<h3>What is the difference between a Gaming PC and a regular PC?</h3>
</header>
<p>
</p>
</section>
<section class="main-section" id=" Components_of_a_regular_consumer_PC">
<header>
<h4>Components of a regular consumer PC</h4>
</header>
<p>
<ul>
<li>CPU</li>
<li>Motherboard</li>
<li>RAM</li>
<li>A storage drive</li>
<li>Power Supply</li>
<li>Case/Tower</li>
<li>CPU Cooler</li>
<li>If the CPU doesn't have a built in GPU, a discrete GPU</li>
</ul>
</p>
</section>
<section class="main-section" id="Finding_out_which_components_are_right_for_you">
<header>
<h5>Finding out which components are right for you</h5>
</header>
<p>
</p>
</section>
<section class="main-section" id="Have_Fun!">
<header>
<h6>Have Fun!</h6>
</header>
<p>
</p>
</section>
</body>
</main>