I can't finish #4 of Technical Documentation Page

Hi everyone, I can’t finish #4 of Technical Documentation Page:

My Codepen

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_&_Java”).

Feel free to ask me to add anything else.

Thanks :smiley:
Krish

Samolex it doesn’t work.

Hello and welcome to the FCC community~!

I believe your error is being caused by this:

For the purposes of the test, & is not the same as and :slight_smile:

Looks like you got the solution already from nhcarrigan… I missed out on that

So I have to take out the & cause I don’t know :slightly_frowning_face:

Your header elements say and. Your links say &. The test errors because these don’t match.

You can either change your links to say and, or change your headers to use &. :slight_smile:

I think you have to either remove the & from the href or add the & to the id, so both href and id have the same name. Your section id name is “Mers_Covid-19” but you are telling your link to go to Mers_&_Covid-19 which doesn’t exist.

here i fixed just the step for you: https://codepen.io/samolex/pen/abdYNQw?editors=1000

The problem i fixed was that some of the header text content and the section id were not the same.

Thanks :smiley: :smiley:

You are always welcome.