Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Going Further with HTML Linking to Sections of a Web Page

Andrew Chang
Andrew Chang
2,618 Points

Can anyone please offer me the code of article.html? I accidentally deleted it.

Can anyone please offer me the code of article.html? I accidentally deleted it.

2 Answers

Gabriel Plackey
Gabriel Plackey
11,064 Points

here is what I had for article.html, don't believe i ever made any changes to it. But I'm not sure.

<!DOCTYPE html>
<html>
  <head>
    <title>VR Article</title>
  </head>

  <body>
    <div>
      <header>
        <h1>Experience VR</h1>
        <p>A simple blog about virtual reality experiences</p>

        <nav>
          <ul>
            <li><a href="../../index.html">Home</a></li>
            <li><a href="#">About</a></li>
            <li><a href="#">Articles</a></li>
            <li><a href="#">Contact</a></li>
          </ul>
        </nav>
      </header>

      <article>
        <header>
          <h2>VR Article</h2>
          <p>By: Nick Pettit</p>
          <p>Published: June 19, 2017</p>
        </header>

        <img src="../../img/vr-user.jpg" alt="User trying a VR headset">

        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce finibus urna lacus, ut lacinia elit pretium a. Praesent rutrum ac ipsum vitae rhoncus. Nam non molestie purus.</p>
        <aside>
          <q>This is a pull quote from the VR article...</q>
        </aside>
        <p>Nunc imperdiet, dui in varius eleifend, magna enim imperdiet felis, at ultricies magna metus vitae ante. Nulla in porttitor nibh. Mauris non libero in massa porta varius non sed magna. Donec ac mauris mattis, viverra turpis ac, dictum arcu.</p>
        <p>Vivamus molestie laoreet viverra. Ut ac fringilla ex. Donec at nisl semper, commodo mi maximus, fermentum nisi. Duis bibendum gravida ante sit amet consectetur. Curabitur ac est id justo euismod porta quis ac arcu.</p>     
      </article>

      <aside>
        <h3>More Articles About VR</h3>
        <ul>
          <li><a href="#">Make a VR Game</a></li>
          <li><a href="#">Learn VR in Unity</a></li>  
          <li><a href="#">Build User Interfaces in VR</a></li>        
        </ul>
      </aside>

      <footer>
        <p>&copy;2017 Experience VR, The Blog</p>
      </footer>
    </div>
  </body>
</html>