Posted on

HTML Forms unchained in HTML5

What is it all about?

HTML forms are used since a long time to give users some possibilities to enter information. Since HTML5 there are a couple of really cool extensions we want to check out over here.

So let’s go

Here we have just a normal form with a nickname, email, title and text part.





So far nothing special. No we want to introduce a couple of interesting stuff. Be aware that this is only working on modern HTML5 browsers and also depending on the kind of browser. Therefore you should not rely on this features but instead see them is useful extensions.

“placeholder” shows some help information within the field.
“lang” specifies the language and therefore the spellchecker (if available)
“autocomplete” enables automatic completion of this field





Links

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input