HTML5 form features

Input types

autofocus attribute

<input type="text" name="text" autofocus>

placeholder attribute

<input type="text" name="text" placeholder="sample text">

required attribute

<input type="text" name="email" required>

oninput event handler

<textarea rows="3" cols="60" 
    oninput="document.getElementById('counter').firstChild.nodeValue 
        = this.value.length"></textarea>
<span id='counter'>0</span>

0