html video element. my video flashes on and off.
how should the coding script look so far?
can a instructor look at my coding pls. I was going well until I tried to do instruction 2. where I am creating a video element using the code previously as a guide.
I have been cutting and pasting. now I am completely lost.
i can move on forward with the lessons but my video cannot be played.
I worry that the final product will not work at all.
It looks like this topic is in the wrong category, so we aren’t able to tell which lesson (or project) you’re on. Could you please post a link to the thing you’re working on?
Thanks
><!DOCTYPE html>
<html>
<head>
<title>Ollie Bike Sharing</title>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<h2>Ollie</h2>
</body>
<ul>
<li>sign up</li>
<li>search bikes</li>
<li>reserve a bike</li>
<li>about us</li>
</ul>
<h1>Ollie Bike Sharing</h1>
<h3>Share Your Pedals with the World.</h3>
<p>Need a set of wheels while you're in town? Use Ollie to pair your perfect vacation with a stylish, affordable bike rental.</p>
Here is a <a href="cities.html">list</a> of cities where you can find us.
<video width="320" height="240" controls>
<source src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-1/ollie.mp4" type="ollie.mp4">
</video>
</html>
@sistercode OK, so first you need to remove the stray > at the very beginning of line 1.
Then, move the </body> on line 10 down to just before </html>, at the bottom of your code.
Next, you’ll need to change the type attribute on your <video> - ollie.mp4 simply specifies the name, whereas we want to tell the computer what video encoding method was used for it. So you should change that to video/mp4 instead, like this:
... type="video/mp4">
Please let me know if you’re still having problems with the lesson!
Also, see this article for how to make your code show up in the forums please: