form input type email code example

Example 1: html email input

<form>
  
  <div>
    <label for="email-input">Label text</label><br>
    <input 
      id="email-input" 
      type="email" 
      name="email-inputted" 
      placeholder="placeholder-text">
  </div>
  
  <button type="submit">Submit</button>
</form>

Example 2: input type email

<label for="email">Enter your email:</label>
<input type="email" 
  id="email" name="email">

Example 3: Which attribute in HTML5 is used to verify the email address on a web page?

patterned also do not cheat :)

Tags: