Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:

Your portfolio should use at least one media query.
Failed:12. Your #navbar element should always be at the top of the viewport.
I don’t know how to get passed this step

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<head>
  <meta name="viewport", content="width=device-width, initial-scale=1.0></meta
<link rel="stylesheet" href="styles.css"></link>
<meta charset=UTF-8></meta>
<header id="welcome-section">
  <h1>bitches</h1>
  <nav class="navbar-fixed-top" id="navbar">
    <a href="#header"></a>
  </nav>
</header>
</head>
<body>
  <section id="project-grid">
    <a></a>
    <h3></h3>
    </section>
  <section id="projects">
    <a></a>
    <div class="project-tile"></div>
    <link href="https://dictionary.cambridge.org/dictionary/english/project"></link>
  </section>
  <a id="profile-link", target= "_blank", href="https://www.freecodecamp.org/fcc3a001f11-2950-45b8-8a44-90075aa1ceeb"></a>
</body>
<html>
/* file: styles.css */
:root{
  --background-color: orange;
}


@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}
header {
  position: fixed;
  top: 0px;
  width: 100%;
  height: 19px;

}
#navbar {
    background: red;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 10000;
}

Your browser information:

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

Challenge Information:

Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Hi there!

link element is a void element, it’s didn’t need a closing tag.

also meta is a void element, you have a broken closing tag

also you are missing the quote after 1.0

these both can cause your link element to not be read

1 Like