HTML5 provides some useful tips

Warning: This post is outdated and may not reflect the current state of the art

auto focus

<input autofocus="autofocus" />When the page loads, the focus will be placed on the specified HTML element

Download file

<a href="file.pdf" download="pdf-file">Download</a>The specified file will be downloaded using the name provided.

Hidden element

<div hidden="hidden"></div>Although putting presentations in HTML is terrible, sometimes it can be useful.

Turn off (or turn on) spell check

Configured to spell check everything typed by users can sometimes get in the way of your operating system-<input type="text" spellcheck="true|false">Can help.

Auto suggest text input control

  <input list="mylist" name="mylist" >
  <datalist id="mylist">
    <option value="CSS">
    <option value="HTML">
    <option value="PHP">
    <option value="Jquery">
    <option value="Wordpress">
  </datalist>

Download mine for freeJavaScript beginner's manual


More browser tutorials: