Product Landing Page - Build a Product Landing Page

Tell us what’s happening:

Describe your issue in detail here.

  • Failed:You should have a video or iframe element with an id of video.

  • Failed:Your #video should have a src attribute.

  • Failed:You should have a form element with an id of form.
    Failed:Your #form should have an action attribute of https://www.freecodecamp.com/email-submit.

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 rel="stylesheet" href="styles.css">
    <title>Your Product Landing Page</title>
</head>
<body>
    <!-- Header Section -->
    <header id="header">
        <img id="header-img" src="https://www.google.com/url?sa=i&url=https%3A%2F%2Fpngtree.com%2Ffree-logo-png&psig=AOvVaw2DQmqADP98wnyw4h9WG-ef&ust=1703782613254000&source=images&cd=vfe&ved=0CBIQjRxqFwoTCKDBnZGLsIMDFQAAAAAdAAAAABAE" alt="Your Logo">
        <nav id="nav-bar">
            <a class="nav-link" href="#section1">Section 1</a>
            <a class="nav-link" href="#section2">Section 2</a>
            <a class="nav-link" href="#section3">Section 3</a>
        </nav>
    </header>

    <!-- Content Sections -->
    <section id="section1">
        <h2>Section 1</h2>
    </section>

    <section id="section2">
        <h2>Section 2</h2>
    </section>

    <section id="section3">
        <h2>Section 3</h2>
    </section>

    <!-- Video Section -->
    <section id="video">
        <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/3xjT-v7U8eE" frameborder="0" allowfullscreen></iframe>
    </section>

    <!-- Form Section -->
    <section id="form">
        <form id="form" action="https://www.freecodecamp.com/email-submit" method="post">
            <label for="email">Email:</label>
            <input type="email" id="email" name="email" placeholder="Enter your email" required>
            <input type="submit" id="submit" value="Submit">
        </form>
    </section>

    <!-- Script Section -->
    <script src="your-script.js"></script>
</body>
</html>

/* file: styles.css */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

#header {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

#header-img {
  max-width: 100%;
  height: auto;
}

#nav-bar {
  display: flex;
  justify-content: center;
  background-color: #444;
  padding: 10px;
}

.nav-link {
  margin: 0 15px;
  color: #fff;
  text-decoration: none;
}

#video {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

#form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
}

#email {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

#submit {
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#submit:hover {
  background-color: #0056b3;
}

/* Media Query for Responsive Design */
@media screen and (max-width: 768px) {
  /* Add responsive styles here */
}

Your browser information:

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

Challenge Information:

Product Landing Page - Build a Product Landing Page

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

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