Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:

I keep failing the test at " The first child of each .main-section should be a header element.". I do indeed have the header elements at the beginning of each #main-section element. I do not understand why the code is failing.

Your code so far

<!-- file: index.html -->
<DOCTYPE html>
  <html lang ="en">

    <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link href="styles.css" rel="stylesheet">
      </head>

    <main id="main-doc">

      <section class="main-section" id="Baseball">
        <header>Baseball</header>
        <p></p>
        <p></p>
        <code></code>
        <li></li>
        <nav id="navbar">
          <header>This is section about Baseball</header>
          <a href="https://www.foxsports.com/mlb" class="nav-link">Baseball</a>
        </nav>
      </section>

      <section class="main-section" id="Football">
        <header>Football</header>
        <p></p>
        <p></p>
        <code></code>
        <li></li>
        <nav id="navbar">
          <a href="https://www.foxsports.com/nfl" class="nav-link">Football</a>
        </nav>
      </section>

      <section class="main-section" id="Hockey">
        <header>Hockey</header>
        <p></p>
        <p></p>
        <code></code>
        <li></li>
        <nav id="navbar">
          <a href="https://www.foxsports.com/nhl" class="nav-link">Hockey</a>
        </nav>
      </section>

      <section class="main-section" id="Soccer">
        <header>Soccer</header>
        <p></p>
        <p></p>
        <code></code>
        <li></li>
        <nav id="navbar">
          <a href="https://www.foxsports.com/mlb" class="nav-link"><Soccer</a>
        </nav>
      </section>

      <section class="main-section" id="Basketball">
        <header>Basketball</header>
        <p></p>
        <p></p>
        <code></code>
        <li></li>
        <nav id="navbar">
          <a href="https://www.foxsports.com/nba" class="nav-link">Basketball</a>
        </nav>
      </section>

      </main>

  <html>
/* file: styles.css */
#navbar {
  position: fixed;
}

@media (max-width: 1196) {
 #navbar{
   float: left;
 }
}
.main-section:first-child{
 color: black;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

Technical Documentation Page - Build a Technical Documentation Page

Nevermind… Issue resolved.

1 Like

Welcome to the FFC forum. Your html document is missing this “!” Sign.
@Eggamyer

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.