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>

onforminput event handler

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

0

About me

신현석 안녕하세요, 신현석입니다. 웹표준, 웹접근성에 관심이 많습니다. 궁금하신 점은 언제든지 메일 주세요.