A link to the challengeHere
here is my code
my issue is with user story #4:
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
can anyone see what im missing?
The section id and the header/h1 title should be exactly the same, except instead of space you put the “_” character.
For example, in your code, one of your sections has the id of
intro_blank, while its header/h1 is entitled
Java Script Introduction.
In the example given by FCC, the section id is
Hope it helped. ^^
here is the boilerplate of what the user story says
<section class="main-section" id="Basics">
.........some more content
<section class="main-section" id="Zenhome_features">
<header class="doc-title">Zenhome features</header>
...... some more content
Id and text inside the header with class of doc-title is same with space replaced by _
@sthorne815, when a test fails click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.
Reading the full error message will help you to understand what the test is looking for and why it fails.
The failing message says;
Some "main-section" elements are missing the following ids (don't forget to replace spaces with underscores!) : JAVA_SCRIPT_INTRODUCTION,WHAT_YOU_NEED_TO_KNOW,JAVA_SCRIPT_VOCABULARY,DECLARING_VARIABLES,REFRENCES : expected 5 to equal 0
AssertionError: Some "main-section" elements are missing the following ids (don't forget to replace spaces with underscores!) : JAVA_SCRIPT_INTRODUCTION,WHAT_YOU_NEED_TO_KNOW,JAVA_SCRIPT_VOCABULARY,DECLARING_VARIABLES,REFRENCES : expected 5 to equal 0
Do you understand what the test is looking for and why it is failing?
Someone has given you the answer but I hope by reading through the entire message you understand why the test failed.
On a side note, when they gave the answer, case is not important. But the text with underscores is.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.