I used iframe and embedded a youtube video , which is not playable


code:

<h1>Form</h1>

<form action="index.html" method="POST">

  <label for="fname">First Name:</label>

  <input type="text" /><br /><br />

  <label for="lname">Last Name:</label>

  <input type="text" /><br /><br />

  <label for="email">Email</label>

  <input type="email" /><br /><br />

  <label for="password">Password</label>

  <input type="password" /><br /><br />

  <label for="date">Date</label>

  <input type="date" /><br /><br />

  <label for="feedback">Feedback</label>

  

  <iframe

    width="560"

    height="315"

    src="https://www.youtube.com/embed/US2B33WeIak"

    frameborder="0"

    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"

    allowfullscreen

  ></iframe>

</form>

I added the iframe using youtube embed code got the screen but as soon as I clicked it , it is not working for any video

Hello Nikita,
I was able to play the youtube video embedded in iframe when I tried your code in codepen website. Here is the link to pen:-

The issue might be in your local ISP/network settings or localhost address on your laptop.