HTML-Day3

 <!DOCTYPE html>

<html>

<style>

body {  background: yellow:  }

</style>

<body>

<h2>HTML Forms</h2>

<form action="/action_page.php">

//  Label & TextBox

  <label for="fname">First name:</label><br>

  <input type="text" id="fname" name="fname" value="John"><br>

  <label for="lname">Last name:</label><br>

  <input type="text" id="lname" name="lname" value="Doe"><br><br>

  <input type="radio" id="male" name="gender" value="male">

  <label for="male">Male</label><br>

  <input type="radio" id="female" name="gender" value="female">

  <label for="female">Female</label><br>

  <input type="radio" id="other" name="gender" value="other">

  <label for="other">Other</label>

// CheckBox

 <input type="checkbox" id="vehicle1" name="vehicle1" value="Bike">

  <label for="vehicle1"> I have a bike</label><br>

  <input type="checkbox" id="vehicle2" name="vehicle2" value="Car">

  <label for="vehicle2"> I have a car</label><br>

  <input type="checkbox" id="vehicle3" name="vehicle3" value="Boat">

  <label for="vehicle3"> I have a boat</label>

// Button

  <input type="submit" value="Submit Type">

 <input type ="button" value ="Button Type">

   <br>

   <br>

// Graphics

<svg width="100" height="100">

  <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />

</svg>


// Video

<iframe width="420" height="345" src="https://www.youtube.com/embed/tgbNymZ7vqY">

</iframe>

<iframe width="560" height="315" src="https://www.youtube.com/embed/uuzi3SmCLVo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

</body>

</html>


No comments:

Post a Comment