Build an HTML Audio and Video Player - Build an HTML Audio and Video Player

Tell us what’s happening:

i can’t pass number 18, why that’s happen ,please help me if i’m wrong

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>HTML Audio and Video Lab</title>
</head>
</body>
<h1>Main Title of page</h1>
  <section>
    <h2>Tech Logic</h2>
      <video controls
      width= "640">
      <source src= "https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4" type= "video/mp4">
</video>
</section>
<section>
  <h2>title of song</h2>
  <audio controls loop>
    <source src= "https://cdnfreecodecamp.org/curriculum/js-music-player/sailing-away.mp3" type= "audio/mp3"
</body>
</html>

Your browser information:

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

Challenge Information:

Build an HTML Audio and Video Player - Build an HTML Audio and Video Player

all tags need to be closed, and the audio element is missing the closing tag

but the issue is that you are not asked to add the source element for the audio element

what’s wrong with my code

html syntax errors:

  • source is missing the >
  • audio is missing the closing tag

to solve the challenge:

  • you are not asked to use source element for audio
source src= "https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3" type= "audio/mp3">
</audio>

update code

I do not understand what you are showing me

this is my update code,after i upadate my code it doesn’t happen

you did not solve this