1 / 19

HTML5: Email Text Box

HTML5: Email Text Box. <input> Accepts text information in e-mail address format Common Attributes: type=“email” name id size maxlength value placeholder required. example. chapter9/email.html. HTML5: URL Text Box. <input> Accepts text information in URL format Common Attributes:

tnaomi
Download Presentation

HTML5: Email Text Box

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTML5: Email Text Box • <input> • Accepts text information in e-mail address format • Common Attributes: • type=“email” • name • id • size • maxlength • value • placeholder • required

  2. example • chapter9/email.html

  3. HTML5: URL Text Box • <input> • Accepts text information in URL format • Common Attributes: • type=“url” • name • id • size • maxlength • value • placeholder • required

  4. example • chapter9/url.html

  5. HTML5: Telephone Number Text Box • <input> • Accepts text information in telephone number format • Common Attributes: • type=“tel” • name • id • size • maxlength • value • placeholder • required

  6. example • chapter9/tel.html

  7. HTML5: Search Text Box • <input> • Accepts search terms • Common Attributes: • type=“search” • name • id • size • maxlength • value • placeholder • required

  8. example • chapter9/search.html

  9. HTML5: Datalist Control <label for="color">Favorite Color:</label> <input type="text" name="color" id="color" list="colors" > <datalist id="colors"> <option value="red"> <option value="green"> <option value="blue"> <option value="yellow"> <option value="pink"> <option value="black"> </datalist>

  10. example • chapter9/list.html

  11. HTML5: Slider Control <label for="myChoice"> Choose a number between 1 and 100:</label><br> Low <input type="range" name="myChoice" id="myChoice" min="1" max="100"> High

  12. Example • chapter9/range.html

  13. HTML5: Spinner Control <label for="myChoice">Choose a number between 1 and 10:</label><input type="number" name="myChoice" id="myChoice" min="1" max="10">

  14. example • chapter9/spinner.html

  15. HTML5: Calendar Control <label for="myDate">Choose a Date</label><input type="date" name="myDate" id="myDate">

  16. example • chapter9/date.html

  17. example • chapter9/color.html

  18. Practice with an HTML5 Form • The form display and functioning varies with browser support.

  19. Hands-on practice 9.6 (page 415) • <input type="text" name="myName" id="myName" required="required" placeholder="your first and last name"> • chapter9/form6.html

More Related