Skip to content
Justice Tech School

Date, Colour and Range Inputs

Modern input types give native pickers: date, time, datetime-local, month, week, color, range, number and search. They also validate on mobile keyboards.

Example
<label>Date <input type="date"></label><br>
<label>Colour <input type="color" value="#14b8a6"></label><br>
<label>Volume <input type="range" min="0" max="10"></label>

Exercise

Pick a colour.

<input type="">

Quiz Test

Which type shows a slider?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.