in building a documentation page
user story # 4
its still not passing the test even if i add an id to all section element with has class as main-section
i have used underscores which has spaces too
can anyone help me out
1 Like
Can you share the link to the pen, so I may have a better look on where you got the problem?
1 Like
https://codepen.io/hussamkhatib/pen/zYGLOzq
its incomplete tho
INTRODUCTION_TO_JAVASCRIPT
, VARIABLES
, OPERATORS
are the ids
The test case No 4 says:
Your section tag must have the same id as the inner text of your header tag.
For example: If this is your header tag with the inner text of “Introduction to JavaScript”.
<header>Introduction to JavaScript</header>
Then, your section tag must have the id as below:
<section class="main-section" id="Introduction_to_JavaScript">
I hope, it may help.
2 Likes
thank you very much
probably the best explaination
1 Like
Thank you for the compliment. happy coding.
1 Like