It is a page containing technical information about a specific topic.
- You can see a
mainelement with a correspondingid="main-doc", which contains the page's main content (technical documentation) - Within the
#main-docelement, you can see severalsectionelements, each with a class ofmain-section. There should be a minimum of five - The first element within each
.main-sectionshould be aheaderelement, which contains text that describes the topic of that section. - Each
sectionelement with the class ofmain-sectionshould also have anidthat corresponds with the text of eachheadercontained 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") - The
.main-sectionelements should contain at least tenpelements total (not each) - The
.main-sectionelements should contain at least fivecodeelements total (not each) - The
.main-sectionelements should contain at least fiveliitems total (not each) - You can see a
navelement with a correspondingid="navbar" - The navbar element should contain one
headerelement which contains text that describes the topic of the technical documentation - Additionally, the navbar should contain link (
a) elements with the class ofnav-link. There should be one for every element with the classmain-section - The
headerelement in the#navbarmust come before any link (a) elements in the navbar - Each element with the class of
nav-linkshould contain text that corresponds to theheadertext within eachsection(e.g. if you have a "Hello world" section/header, your navbar should have an element which contains the text "Hello world") - When you click on a navbar element, the page should navigate to the corresponding section of the
#main-docelement (e.g. If you click on a.nav-linkelement that contains the text "Hello world", the page navigates to asectionelement with that id, and contains the corresponding header) - On regular sized devices (laptops, desktops), the element with
id="navbar"should be shown on the left side of the screen and should always be visible to the user - Your technical documentation should use at least one media query
Fulfill the user stories and pass all the tests below to complete this project. Give it your own personal style. Happy Coding!
Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS
- Waiting:You should have a
mainelement with anidofmain-doc. - Waiting:You should have at least five
sectionelements with a class ofmain-section. - Waiting:All of your
.main-sectionelements should besectionelements. - Waiting:You should have at least five
.main-sectionelements that are descendants of#main-doc. - Waiting:The first child of each
.main-sectionshould be aheaderelement. - Waiting:None of your
headerelements should be empty. - Waiting:All of your
.main-sectionelements should have anid. - Waiting:Each
.main-sectionshould have anidthat matches the text of its first child, having any spaces in the child's text replaced with underscores (_) for the id's. - Waiting:You should have at least 10
pelements (total) within your.main-sectionelements. - Waiting:You should have at least five code elements that are descendants of
.main-sectionelements. - Waiting:You should have at least five
lielements that are descendants of.main-sectionelements. - Waiting:You should have a
navelement with anidofnavbar. - Waiting:Your
#navbarshould have exactly oneheaderelement within it. - Waiting:You should have at least one
aelement with a class ofnav-link. - Waiting:All of your
.nav-linkelements should be anchor (a) elements. - Waiting:All of your
.nav-linkelements should be in the#navbar. - Waiting:You should have the same number of
.nav-linkand.main-sectionelements. - Waiting:The
headerelement in the#navbarshould come before any link (a) elements also in the#navbar. - Waiting:Each
.nav-linkshould have text that corresponds to theheadertext of its related section (e.g. if you have a "Hello world" section/header, your#navbarshould have a.nav-linkwhich has the text "Hello world"). - Waiting:Each
.nav-linkshould have anhrefattribute that links to its corresponding.main-section(e.g. If you click on a.nav-linkelement that contains the text "Hello world", the page navigates to asectionelement with that id). - Waiting:Your
#navbarshould always be on the left edge of the window. - Waiting:Your Technical Documentation project should use at least one media query.