# Technical Doc Project - Failing #4

**URL:** <https://forum.freecodecamp.org/t/technical-doc-project-failing-4/326191>\
**Category:** I Built This\
**Created:** [November 12, 2019, 12:09am UTC](https://forum.freecodecamp.org/t/technical-doc-project-failing-4/326191 "2019-11-12T00:09:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryegrammer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ryegrammer/32/127429_2.png) [@ryegrammer](https://forum.freecodecamp.org/u/ryegrammer)\
**Post date:** [November 12, 2019, 12:09am UTC](https://forum.freecodecamp.org/t/technical-doc-project-failing-4/326191/1 "2019-11-12T00:09:28Z")

</div>

I am failing User Story #4 on the Techincal Documentation Project, but I do not understand why.  
**User Story #4:** Each `section` element with the class of `main-section` should also have an id that corresponds with the text of each `header` contained within it. Any spaces should be replaced with underscores (e.g. The `section` that contains the header “JavaScript and Java” should have a corresponding `id="JavaScript_and_Java"` ).

My section IDs are correctly named I think. The caps match the caps in the titles and I don’t have any spaces. Can someone tell me why this is failing?

> **[Fork Me! FCC: Test Suite Template](https://codepen.io/guitarcode/pen/gOOjqQJ)**
>
> ...

Thanks for any help!  
[https://codepen.io/guitarcode/pen/gOOjqQJ](https://codepen.io/guitarcode/pen/gOOjqQJ)

---

<div class="post-metadata">

**Author:** ![ricardoantonio](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ricardoantonio/32/206677_2.png) [@ricardoantonio](https://forum.freecodecamp.org/u/ricardoantonio)\
**Post date:** [November 12, 2019, 12:18am UTC](https://forum.freecodecamp.org/t/technical-doc-project-failing-4/326191/2 "2019-11-12T00:18:07Z")

</div>

This is the test says

> Not all elements with the class `'main-section'` have a `<header>` element as a first element child : expected 0 to equal 5

Try this…

```auto
<section id="main-section">
  <header>
    <h2>Title</h2>
  </header>
 Te content...
</section>

```

---

<div class="post-metadata">

**Author:** ![ryegrammer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ryegrammer/32/127429_2.png) [@ryegrammer](https://forum.freecodecamp.org/u/ryegrammer)\
**Post date:** [November 12, 2019, 1:21am UTC](https://forum.freecodecamp.org/t/technical-doc-project-failing-4/326191/3 "2019-11-12T01:21:46Z")

</div>

Thanks, adding the header tag was what worked. I thought heading was sufficient. I did keep the id as the title and main-section as the class for this solution.

Thanks again.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 7:51pm UTC](https://forum.freecodecamp.org/t/technical-doc-project-failing-4/326191/4 "2021-01-17T19:51:30Z")

</div>

Closed on January 17, 2021, 7:51pm UTC


