HTML HTML Basics Structuring Your Content Structuring Content Challenge

Why do I always have to make mistakes?

Another mistake!

index.html
<!DOCTYPE html>
<html>
  <head>
   <ul></ul>
    <h1></h1>
    <p></p>
    <link href="styles.css" rel="stylesheet">
    <title>My Portfolio</title>
  </head>
  <body>
    <ul>
      <li><a href="#">About</a></li>
      <li><a href="#">Work</a></li>
      <li><a href="#">Contact</a></li>            
    </ul>
    <h1>My Web Design &amp; Development Portfolio!</h1> 
    <p>A site featuring my latest work.</p>

    <h2>Welcome</h2> 
    <p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
    <ul>
      <li><a href="#">Recent project #1</a></li>
      <li><a href="#">Recent project #2</a></li>
      <li><a href="#">Recent project #3</a></li>     
    </ul>

    <p>&copy; 2017 My Portfolio</p>
    <p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
  </body>
</html>

2 Answers

Martin Jones
Martin Jones
Front End Web Development Techdegree Graduate 41,143 Points

It's the best way to learn :)

You were close, just need to wrap the elements in the <header> tag, the <head> tag mostly contains metadata for the HTML document.

<!DOCTYPE html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
    <title>My Portfolio</title>
  </head>
  <body>
    <header>
      <ul>
        <li><a href="#">About</a></li>
        <li><a href="#">Work</a></li>
        <li><a href="#">Contact</a></li>            
      </ul>
      <h1>My Web Design &amp; Development Portfolio!</h1> 
      <p>A site featuring my latest work.</p>
    </header>

    <h2>Welcome</h2> 
    <p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
    <ul>
      <li><a href="#">Recent project #1</a></li>
      <li><a href="#">Recent project #2</a></li>
      <li><a href="#">Recent project #3</a></li>     
    </ul>

    <p>&copy; 2017 My Portfolio</p>
    <p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
  </body>
</html>
Richard Verbraak
Richard Verbraak
7,703 Points

Hey Lynn!

You need to place the h1's p's and ul's inside of the body tags. All the content inside of the body will be displayed to the screen, you placed them inside the head tag.

The <head> is commonly used for titles in your browser displayed in the browser tab way up top and also used for metadata (don't worry about that yet). For example, the title of the browser tab you have open right now is the title of your question!

And don't worry about making mistakes, that's just how we as humans learn, no one is a know-it-all right from the start!

Good luck and just have fun!