Top Banner
SOME NEW HTML5 INPUT ELEMENTS PROF. DAVID ROSSITER 1/6
6

Some New HTML5 Input Elements

Jul 11, 2016

Download

Documents

Nayana HA

new input elements in HTML
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Some New HTML5 Input Elements

SOME NEW HTML5INPUT ELEMENTS

PROF. DAVID ROSSITER

1/6

Page 2: Some New HTML5 Input Elements

AFTER THIS PRESENTATIONYou'll be able to use somenew HTML5 input elements

2/6

Page 3: Some New HTML5 Input Elements

ELEMENTS & ATTRIBUTES WE WILL LOOK AT<input type="number">

<input type="date">

<input type="color">

<input type="range">

<input type="time">

3/6

Page 4: Some New HTML5 Input Elements

NEW HTML5 INPUT ELEMENTSNumber Input <input type="number">

Date Input <input type="date">

Time Input <input type="time">

Color Picker <input type="color">

Slider <input type="range">

4/6

Page 5: Some New HTML5 Input Elements

EXAMPLE<form action="http://ihome.ust.hk/~rossiter/cgi­bin/show_everything.php">  <label for="age">Your age:</label>  <input type="number" min="0" max="99" step="1" value="18" name="age" required><br>  <label for="birthday">Your birthday:</label>  <input type="date" name="birthday"><br>  <label for="wakeup">You want to wake up at:</label>  <input type="time" name="wakeup"><br>  <label for="color">Your favorite color:</label>  <input type="color" name="color"> <br>  <label for="mood">Your mood:</label>  Bad <input type="range" min="0" max="100" step="5" value="50" name="mood"> Good<br  <input type="submit" value="Submit!"> </form>

5/6

Page 6: Some New HTML5 Input Elements

Your age: 18Your birthday:  dd/mm/yyyyYou want to wake up at:  ‐‐:‐‐Your favorite color:   

Your mood: Bad   GoodSubmit!

Select to open the examplehere

6/6