myatoo

LabelTag

Nov 29th, 2020
573
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en" dir="ltr">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <title>Form Part 2</title>
  6.   </head>
  7.   <body>
  8.     <h1>Form Part 2</h1>
  9.     <form class="" action="" method="post">
  10.       <p>Enter Email Address:</p>
  11.       <input type="email" name="userEmail" value="" placeholder="Enter Email Address">
  12.       <input type="submit" name="" value="submit">
  13.     </form>
  14.     <form class="" action="" method="post">
  15.       <!-- Using Label without for -->
  16.       <label>
  17.           Enter Text:
  18.           <input type="text" name="" value="">
  19.       </label>
  20.       <label>
  21.           Enter Text:
  22.           <input type="text" name="" value="">
  23.       </label>
  24.     </form>
  25.     <form class="" action="" method="post">
  26.       <!-- Using a label with for -->
  27.       <label for="userInput">Enter Input</label>
  28.       <input type="text" name="" value="" placeholder="Not required">
  29.       <!-- Learn Required Tag -->
  30.       <input id="userInput" type="text" name="" value="" placeholder="Enter Something" required>
  31.     </form>
  32.   </body>
  33. </html>
  34.  
RAW Paste Data