html type email code example

Example 1: html tag email

<a href="mailto:[email protected]">Contattaci</a>

Example 2: 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 3: html email input

<label for="user_email">Your email</label><br/>
<input 
       type="email" 
       id="user_email" 
       name="user_email" 
       maxLength="100"
       placeholder="Email is mandatory">

Example 4: how to add an email box in html

Email : <input type="email">

Tags:

Html Example