Can I use placeholder in <input type="time"/>

yes you can

The placeholder attribute specifies a short hint that describes the expected value of an input field

it depents how the browser behaves to the

<input type="time"/>

for example chromium shows

--:-- --

by defualt but firefox shows the placeholder value you have set

check here:

jsfiddle


If you add a id or class to the input, you can add text to the input type="time" field by using :before.

For example:

HTML:

<input type="time" id="timepicker">

CSS:

#timepicker:before {
content:'Time:';
margin-right:.6em;
color:#9d9d9d;
}

Placeholder does not work with input type time however you can Prefilled data.

Just time:
<input type="time" value="13:00" step="900">

Tags:

Html