Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:
When I run the tests, it says the following:

All of your .main-section elements should be section elements.

~But all of my .main-section elements are section elements. Right?

Each .main-section should have an id that matches the text of its first child, having any spaces in the child’s text replaced with underscores (_) for the id’s.

~I did this, but it’s still showing that this condition hasn’t been met.

You should have at least five code elements that are descendants of .main-section elements.

~Again, I do?

Each .nav-link should have an href attribute that links to its corresponding .main-section (e.g. If you click on a .nav-link element that contains the text “Hello world”, the page navigates to a section element with that id).

~I can’t figure this one out. Am I doing this wrong?

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

<!DOCTYPE html>
  <html lang="en">
    <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">  
  <link rel="stylesheet" href="styles.css">
  </head>
  <body class="body">
    <title>Minecraft Survival Guide (Bedrock)</title>
     <div id="side-nav">
     <nav id="navbar" nav-link="Beginner's_Guide_to_Minecraft_Survival">
      <header><b>Beginner's Guide to Minecraft Survival</b></header>
      <ul>
       <li><a class="nav-link" href="#Introduction">Introduction</a></li>
       <li><a class="nav-link" href="#Day 1">Day 1</a></li>
        <li><a class="nav-link" href="#Early Gameplay and Beyond">Early Gameplay and Beyond</a></li>
        <li><a class="nav-link" href="#Conclusion">Conclusion</a></li>
        <li><a class="nav-link" href="#Gameplay Resources">Gameplay Resources</a></li>
        <li><a class="nav-link" href="Get Minecraft">Get Minecraft</a></li>        
      </ul>
      </nav>
    <main id="main-doc"
    <section class="main-section" id="Introduction">
      <header>Introduction</header>
        <h2>What Is Minecraft?</h2>     
        <p> Minecraft is a 3-D sandbox game which involves resource gathering, crafting, building and combat in a variety of different biomes (terrains). </p>
        <h2>New World</h2>
        <p>When players first spawn in to a new randomly generated world (or a specific seed), they are starting from square 1 and, in Survival Mode, it is a race against the clock to gather food, tools and other resources to build a shelter before the sun sets and mobs start spawning. </p>
        <h2>How to Use This Guide</h2>
        <p>This guide covers the basics of getting started in Minecraft Survival (Bedrock). Read through each section to get an idea of what you're getting into and how to survive in early gameplay.</p>
    </section>
    <section class="main-section" id="Day_1">
      <header>Day 1</header>
        <h2>Crafting Table</h2>
        <p>The very first thing you will need to do is build a crafting table. For this you will need wood. Look for any nearby trees and start punching the wood. Gather about 16 wood total.</p>
        <p>Once you've got your wood, press the square button to open the crafting menu. Place your wood in any slot of the crafting grid and you will get 4 wooden planks per wood block.</p>
        <p>Once you have your wooden planks, fill four spots in the crafting grid (2x2) and you will get your crafting table. Place the table near where you plan to set up your early base camp.</p>
        <h2>Tools</h2>
        <p>Now that you have your crafting table, you have more slots to create a variety of tools. The first tool you should craft is a wooden pickaxe. For this you will need 3 planks and 2 sticks. Place them in a t-formation with 3 planks on top and two sticks straight down from the middle.</p>
        <p>Once you have a wooden pickaxe, look for some stone and start mining. Next, craft a stone pickaxe, the same way you did a wooden pickaxe. Use stone in place of the planks at the top of the t.</p>
        <p>If you have extra stone and sticks, you can also craft other tools, such as an axe, for more efficient wood chopping, and a sword for fighting off mobs. </p>

        <h2>Shelter</h2>
        <p>After the sun goes down, mobs such as zombies, creepers and skeletons will show up everywhere. To save time and resources, you could dig into a hillside or underground at first, and then use dirt blocks to wall yourself in at sunset. </p>
        <p>If you have found some coal, you can use it, along with some sticks, to craft some torches. Torches placed in dark areas keep mobs from spawning. 
        <p>If you have time the first day, make sure you kill some sheep and gather 3 wool (each sheep drops 1 wool). Use this wool, along with some planks, to craft a bed. The bed is imperative in survival mode because you can sleep through the night in your shelter, instead of having to wait for the sun to come up. </p>
        <h2>Food</h2>
        <p>Walking, sprinting and jumping uses up energy as indicated by your hunger meter, represented by chunks of meat. As your hunger meter goes down, you start losing abilities.</p>
        <p>To replenish your hunger, you must eat food. Your main source of food will come from animals such as pigs, sheep and cows. You want your food to be cooked because there is a slight chance that raw meat will deplete your hunger further. You can also eat apples that drop from chopping down trees.</p>  
        <p>Fishing is another good source of food if you happen to have 3 string (dropped from spiders, sometimes found laying on ground just after sunrise). Just combine string and sticks to make a fishing pole and find a water source. 
        <p>To cook your food, either craft a campfire or a furnace. Campfires are nice in early game because you don't need to replenish them with fuel. Just place them on the campfire slots and they will pop off for you to pick them up when they are done cooking. To craft a furnace, you will need cobblestone and then you will need fuel such as coal or wooden materials. *It's better to use planks instead of logs because logs and planks last equally as long but 1 log = 4 planks. </p>   
    </section>
    <section class="main-section" id="Early_Gameplay_and_Beyond">
      <header>Early Gameplay and Beyond</header>  
        <h2>Mineshaft</h2>
        <p>After your first night, you can begin by digging a mineshaft directly under your shelter. You don't want to dig straight down because you could fall into lava, but dig in a stair-step fashion and begin strip mining. This is mining a 1x3 tunnel as far as you can in any direction until you hit water, lava or a steep dropoff/deep cave that you can't get around. You don't want to venture into any open caves until you are better geared. Once you reach the limit of your tunnel, just run back and start another tunnel two blocks over, rinse and repeat. You will likely start finding coal and iron pretty quickly. Be sure to light up with torches as you go so mobs don't spawn in your tunnel. </p>
        <h2>Fishing</h2>
        <p>Another excellent way source of food in the beginning is fishing. You also have a chance to fish up some enchanted books, gear, more fishing poles. All you need is some sticks and string (which drop from spiders, and is sometimes found lying on the ground right after sunrise). Then find a water source (hopefully there is one near your starter base) and start reeling things in! </p>
        <h2>Upgraded Shelter</h2>
        <p>Now that you're gearing up and acquiring more resources, you might be thinking about upgrading your shelter. There are tons of Youtube tutorials for all different kinds of starter bases. Just find one you love, make sure you have what you need and start building! You can build it right at spawn (the spot where you spawned into your world right at the beginning) or you can find a better spot to build a new base. Just remember, you only have limited bag space to bring materials with you and make sure you place down a bed and reset your spawn point if you relocate. *Note: If you break your bed, you will respawn at your original spawn point.</p>
        <h2>Iron Farm</h2>
        <p>One of the most important resources in early gameplay is iron. Once you get a starter base built with everything you need, you might want to start thinking about an iron farm. You will need to find a village, so you're going to need to start exploring. Be sure to empty your bags of everything you don't need before you embark on your exploration. Also, be sure to write down your base coordinates so you don't get lost. In addition to your tools, you will need food, your bed, and torches. If you get stuck out in the open at nightfall, just do what you did the first night. Did into a hillside or down into the ground, wall yourself in, and sleep through the night.</p>
    </section>
    <section class="main-section" id="Conclusion">
      <header>Conclusion</header>
      <h2>Now that you've learned the basics...</h2>
        <p>The sky's the limit! Well, y-level 255 to be exact. There are very few limits to what you can create. You can focus on aesthetic builds within a theme, elaborate redstone machines, or both. I hope you found this guide helpful. Happy Minecrafting! :)</p>
        </section>
    <section class="main-section" id="Gameplay_Resources">
      <header>Gameplay Resources</header>
      <h2>Some Helpful Youtube Channels:</h2>
        <ul>
          <li>JC Playz</li>
          <li>1upMC</li>
          <li>ItsMe James</li>
          <li>Hex - Gaming</li>
          <li>BrianCraft</li>
          <li>Wattles</li>
          <li>RediscoverRedstone</li>
          <li>ECKOSOLDIER</li>
          </ul>
      </section>
    <section class="main-section" id="Get_Minecraft">
      <header>Get Minecraft</header>
        <h2>Download links for Minecraft Bedrock:</h2>
          <ul>
            <li>PC</li>
            <li>PS3</li>
            <li>PS4</li>
            <li>XBoxOne</li>
            <li>XBox360</li>
      </section>  
    </main>
    </body> 
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

You didn’t quite finish off the opening <main> tag correctly.

1 Like

Thank you! That took care of the first one, but when I ran the tests, the other three remain.

Can you post your css code as well. We cant help with the media query unless we see the css. when you reply you can select the format button which looks like </>. Please paste all your css code between the two lines it gives you

As for your nav-links there are a few issues. Look at the ids you are using in your href.

 <ul>
       <li><a class="nav-link" href="#Introduction">Introduction</a></li>
       <li><a class="nav-link" href="#Day 1">Day 1</a></li>
        <li><a class="nav-link" href="#Early Gameplay and Beyond">Early Gameplay and Beyond</a></li>
        <li><a class="nav-link" href="#Conclusion">Conclusion</a></li>
        <li><a class="nav-link" href="#Gameplay Resources">Gameplay Resources</a></li>
        <li><a class="nav-link" href="Get Minecraft">Get Minecraft</a></li>        
      </ul>

Now look at the actual ids your elements have. Take the early gameplay for example, look at the id here compared to the id in the href. They are not the same, you need to go back and make sure the ids in the href are the exact same as the id in the elements

<section class="main-section" id="Early_Gameplay_and_Beyond">
1 Like
<!DOCTYPE html>
  <html lang="en">
    <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">  
  <link rel="stylesheet" href="styles.css">
  </head>
  <body class="body">
    <title>Minecraft Survival Guide (Bedrock)</title>
     <div id="side-nav">
     <nav id="navbar" nav-link="Beginner's_Guide_to_Minecraft_Survival">
      <header><b>Beginner's Guide to Minecraft Survival</b></header>
      <ul>
       <li><a class="nav-link" href="#Introduction">Introduction</a></li>
       <li><a class="nav-link" href="#Day_1">Day 1</a></li>
        <li><a class="nav-link" href="#Early_Gameplay_and_Beyond">Early Gameplay and Beyond</a></li>
        <li><a class="nav-link" href="#Conclusion">Conclusion</a></li>
        <li><a class="nav-link" href="#Gameplay_Resources">Gameplay Resources</a></li>
        <li><a class="nav-link" href="#Get_Minecraft">Get Minecraft</a></li>        
      </ul>
      </nav>
    <main id="main-doc">
    <section class="main-section" id="Introduction">
      <header>Introduction</header>
        <h2>What Is Minecraft?</h2>     
        <p> Minecraft is a 3-D sandbox game which involves resource gathering, crafting, building and combat in a variety of different biomes (terrains). </p>
        <h2>New World</h2>
        <p>When players first spawn in to a new randomly generated world (or a specific seed), they are starting from square 1 and, in Survival Mode, it is a race against the clock to gather food, tools and other resources to build a shelter before the sun sets and mobs start spawning. </p>
        <h2>How to Use This Guide</h2>
        <p>This guide covers the basics of getting started in Minecraft Survival (Bedrock). Read through each section to get an idea of what you're getting into and how to survive in early gameplay.</p>
    </section>
    <section class="main-section" id="Day_1">
      <header>Day 1</header>
        <h2>Crafting Table</h2>
        <p>The very first thing you will need to do is build a crafting table. For this you will need wood. Look for any nearby trees and start punching the wood. Gather about 16 wood total.</p>
        <p>Once you've got your wood, press the square button to open the crafting menu. Place your wood in any slot of the crafting grid and you will get 4 wooden planks per wood block.</p>
        <p>Once you have your wooden planks, fill four spots in the crafting grid (2x2) and you will get your crafting table. Place the table near where you plan to set up your early base camp.</p>
        <h2>Tools</h2>
        <p>Now that you have your crafting table, you have more slots to create a variety of tools. The first tool you should craft is a wooden pickaxe. For this you will need 3 planks and 2 sticks. Place them in a t-formation with 3 planks on top and two sticks straight down from the middle.</p>
        <p>Once you have a wooden pickaxe, look for some stone and start mining. Next, craft a stone pickaxe, the same way you did a wooden pickaxe. Use stone in place of the planks at the top of the t.</p>
        <p>If you have extra stone and sticks, you can also craft other tools, such as an axe, for more efficient wood chopping, and a sword for fighting off mobs. </p>

        <h2>Shelter</h2>
        <p>After the sun goes down, mobs such as zombies, creepers and skeletons will show up everywhere. To save time and resources, you could dig into a hillside or underground at first, and then use dirt blocks to wall yourself in at sunset. </p>
        <p>If you have found some coal, you can use it, along with some sticks, to craft some torches. Torches placed in dark areas keep mobs from spawning. 
        <p>If you have time the first day, make sure you kill some sheep and gather 3 wool (each sheep drops 1 wool). Use this wool, along with some planks, to craft a bed. The bed is imperative in survival mode because you can sleep through the night in your shelter, instead of having to wait for the sun to come up. </p>
        <h2>Food</h2>
        <p>Walking, sprinting and jumping uses up energy as indicated by your hunger meter, represented by chunks of meat. As your hunger meter goes down, you start losing abilities.</p>
        <p>To replenish your hunger, you must eat food. Your main source of food will come from animals such as pigs, sheep and cows. You want your food to be cooked because there is a slight chance that raw meat will deplete your hunger further. You can also eat apples that drop from chopping down trees.</p>  
        <p>Fishing is another good source of food if you happen to have 3 string (dropped from spiders, sometimes found laying on ground just after sunrise). Just combine string and sticks to make a fishing pole and find a water source. 
        <p>To cook your food, either craft a campfire or a furnace. Campfires are nice in early game because you don't need to replenish them with feul. Just place them on the campfire slots and they will pop off for you to pick them up when they are done cooking. To craft a furnace, you will need cobblestone and then you will need feul such as coal or wooden materials. *It's better to use planks instead of logs because logs and planks last equally as long but 1 log = 4 planks. </p>   
    </section>
    <section class="main-section" id="Early_Gameplay_and_Beyond">
      <header>Early Gameplay and Beyond</header>  
        <h2>Mineshaft</h2>
        <p>After your first night, you can begin by digging a mineshaft directly under your shelter. You don't want to dig straight down because you could fall into lava, but dig in a stair-step fashion and begin strip mining. This is mining a 1x3 tunnel as far as you can in any direction until you hit water, lava or a steep dropoff/deep cave that you can't get around. You don't want to venture into any open caves until you are better geared. Once you reach the limit of your tunnel, just run back and start another tunnel two blocks over, rinse and repeat. You will likely start finding coal and iron pretty quickly. Be sure to light up with torches as you go so mobs don't spawn in your tunnel. </p>
        <h2>Fishing</h2>
        <p>Another excellent way source of food in the beginning is fishing. You also have a chance to fish up some enchanted books, gear, more fishing poles. All you need is some sticks and string (which drop from spiders, and is sometimes found lying on the ground right after sunrise). Then find a water source (hopefully there is one near your starter base) and start reeling things in! </p>
        <h2>Upgraded Shelter</h2>
        <p>Now that you're gearing up and acquiring more resources, you might be thinking about upgrading your shelter. There are tons of Youtube tutorials for all different kinds of starter bases. Just find one you love, make sure you have what you need and start building! You can build it right at spawn (the spot where you spawned into your world right at the beginning) or you can find a better spot to build a new base. Just remember, you only have limited bag space to bring materials with you and make sure you place down a bed and reset your spawn point if you relocate. *Note: If you break your bed, you will respawn at your original spawn point.</p>
        <h2>Iron Farm</h2>
        <p>One of the most important resources in early gameplay is iron. Once you get a starter base built with everything you need, you might want to start thinking about an iron farm. You will need to find a village, so you're going to need to start exploring. Be sure to empty your bags of everything you don't need before you embark on your exploration. Also, be sure to write down your base coordinates so you don't get lost. In addition to your tools, you will need food, your bed, and torches. If you get stuck out in the open at nightfall, just do what you did the first night. Did into a hillside or down into the ground, wall yourself in, and sleep through the night.</p>
    </section>
    <section class="main-section" id="Conclusion">
      <header>Conclusion</header>
      <h2>Now that you've learned the basics...</h2>
        <p>The sky's the limit! Well, y-level 255 to be exact. There are very few limits to what you can create. You can focus on aesthetic builds within a theme, elaborate redstone machines, or both. I hope you found this guide helpful. Happy Minecrafting! :)</p>
        </section>
    <section class="main-section" id="Gameplay_Resources">
      <header>Gameplay Resources</header>
      <h2>Some Helpful Youtube Channels:</h2>
        <ul>
          <li>JC Playz</li>
          <li>1upMC</li>
          <li>ItsMe James</li>
          <li>Hex - Gaming</li>
          <li>BrianCraft</li>
          <li>Wattles</li>
          <li>RediscoverRedstone</li>
          <li>ECKOSOLDIER</li>
          </ul>
      </section>
    <section class="main-section" id="Get_Minecraft">
      <header>Get Minecraft</header>
        <h2>Download links for Minecraft Bedrock:</h2>
          <ul>
            <li>PC</li>
            <li>PS3</li>
            <li>PS4</li>
            <li>XBoxOne</li>
            <li>XBox360</li>
      </section>  
    </main>
    </body> 
</html>

I actually tried it with the underscores first and it didn’t work. I just updated it again and it is still saying that they don’t match.

I actually haven’t done the media query part yet. I was going through everything else step by step first.

Gotcha. Im not by my laptop at the moment. I can look at it again when I get back in like 45 minutes, but the test passed on my side after I added those underscores. Might be a small thing thats being missed. Hopefully someone else can back to you sooner than me, but if not I will take another look.

Edit: @GraeFox i copied your updated code and ran i through the test on my phone. Im not see any issue about it complaining about the nav-links anymore

// running tests You should have at least five

elements that are descendants of

.main-section

elements. Your Technical Documentation project should use at least one media query.
// tests completed

1 Like

Just ignore if you don’t have time to answer this…hopefully someone else will see it then. Do the h2 and p elements not count? Or is it supposed to be 5 elements per section element?

So, I tried something out and it worked. However, I am not familiar with this. When the directions say " You should have at least five code elements that are descendants of .main-section elements." Made me think that “code” was actually an element you should be using . I stuck five <code></code> elements inside one of your main-sections and that test passed. You can see the element here. I dont ever recall learning or ever using code elements when I was learning, but it looks like thats what they want

2 Likes

Thank you so much for all of your help. :slight_smile:

1 Like