Build a Personal Portfolio Webpage

Hi all!
So I’m stuck on one of the last steps of this project. I have completed every list requirement. But for some reason it is not accepting my code. I have looked at other peoples posts to see if I did something incorectly but I am not seeing anything different in my code.

The requirements I still need to meet are:

  • Failed: Your portfolio should have an a element with an id of profile-link.

  • Failed: Your #profile-link element should have a target attribute of _blank.

Thank you all in advance for your help!!

this is my code:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport">
        <link href="styles.css" rel="stylesheet">
        <title>Harrison Berger Portfolio Page</title>
    </head>
    <body>
        <header>
            <nav id="navbar">
                <ul>
                    <li><a class="nav-link" href="#welcome-section">Welcome</a></li>
                    <li><a class="nav-link" href="#projects">Projects</a></li>
                    <li><a class="nav-link" href="#Pricing">Pricing</a></li>
                </ul>
        </nav>
        </header>
        <section id="welcome-section">
            <h1 class="header">Harrison Berger</h1>
            <p class="sub-header">Writer | Director | Artist</p>
        </section>
        <section id="projects">
          <div>
            <h2 class="project-tile">Leo Whisky Product Page</h2>
            <img href="#">
            <a href="#">LeoWhiskey.com</a>
            </div>
        </section>
        <section id="profile-link">
          <div id="profile-link">
              <a id="profile-link" href="https://github.com/harrisoncberger" target="_blank"> GitHub</a>
          </div>
        </section>
    </body>
    <footer>

    </footer>
</html>

Welcome to our community!
You have three times id with the same value. It won’t work that way. It can be only one id with the value of “profile-link” in your code.

1 Like

Thank you so much! I really apreciate that. I figured that having the id in all places would link the ‘section’, ‘div’ and ‘a’ together. But I think I assumed that it functed like ‘class’

1 Like

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