Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
Describe your issue in detail here.
I am stuck on adding ‘src’ to the #video attribute. I thought it was like this:

<video src=“”></video>

Well something like this. Maybe I am missing a simple step.
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
  <header id="header">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1">
<link rel="stylesheet" href="styles.css">
<title>A Best Friend</title>
<h1>A True Friend</h1>
  Some people say that a dog is a man's best friend.
<img id="header-img" src="" alt="image" width="200"></img>
<nav-bar id="nav-link">
<nav id="nav-bar">
    <a class="nav-link" href="/video">Video</a>
    <a class="nav-link" href="/form">Form</a>
    <a class="nav-link" href="/footer">Footer</a>
<form id="form" action="">
<email name="email">Type Your Email</email>
  <p><input type="text" name="email" placeholder="enter email"id="submit"id="email"></input></p>
  <iframe id="video"></iframe>

  <video type="button"src="image.jpg"></video>
  <submit type="button">Submit</submit>

<section class="about">
<footer id="footer"></footer>
    <li id="location">
<p>Originated from one of the southern tri-city areas.</p>
    <li id="contacts">

<p>Contacts hidden their information</p>

/* file: styles.css */
  margin: 0;
  padding: 0;

  font-family: ariel, sans-serif;
  font-size: 20px;
width: 600em;
  position: fixed;
  top: 0;
  color: green;
  background-color: lightblue;
  width: 10px 20px;
  border: 100px 200px;
.h1, .p, .h3{
  font-size:  1em;
@media screen and (max-width:320px){
  background: beige;
  text-align: center;
  display: flex;
  margin: 0;
  padding: .5em;
  margin: 0 1em;
  border-width: 2px solid rgb(255, 155, 155);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.2 Mobile/15E148 Safari/604.1

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

Use the </> editor’s button to format code properly. We don’t see what you did with the ‘src’ attribute in your post.

This is where I’m at. Maybe the ‘src’ isn’t the right one.

I figured it out. The instructions suggested to use ‘iframe’ or ‘video’ elements for the video ‘id’. I used iframe and my src did not pass because of me using the iframe element instead of the ‘video’ element. Well, that’s what I came up with.

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

You can still use the iframe element.
The sample project that freeCodeCamp provides is using that iframe.

So you might have run into some syntax errors and that might have been why it wasn’t passing.

Regardless, I am glad you were able to resolve your issue. :+1:

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