Remove seconds input=time - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Remove seconds input=time

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body, input {
   margin:11px;
}
</style> <!--from w ww . ja  v  a  2s .c om-->
 </head> 
 <body> 
  <input type="date" value=""> 
  <input type="time" value="23:20:50.52"> 
  <!-- valid --> 
  <input type="time" value="17:39:57"> 
  <!-- valid --> 
  <input type="time" value="13:37"> 
  <input type="time" value=""> 
  <!--
http://dev.w3.org/html5/markup/input.time.html
http://dev.w3.org/html5/markup/input.time.html#input.time.attrs.value
http://dev.w3.org/html5/markup/datatypes.html#form.data.time
-->  
 </body>
</html>

Related Tutorials