- <!doctype html>
- <meta charset=utf-8>, you should specify your character set in the <head> of your HTML. If you don’t your site could be vulnerable to cross-site scripting attacks.
- Simplify <script> and <style> tags. You no longer need to use the type attribute
- input type=email and input type=tel
- href=tel:, the phone will dial that number if user clicks it
- video
- audio
- svg
- drag and drop
- datasets
- canvas
- history api
- no need to quote attributes, if there is no space in the attribute value
- placeholder attribute http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_placeholder
- define required fields http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_required, make sure verify it on server side too, in case the browser does not support this attribute.
- input pattern, using regular expression, http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_pattern
- section elements
- <article>
- <aside>
- <nav>
- <section>
- <details>
- <figure>
- <header>
- <footer>
- <hgroup>
- to test your page in the HTML5 Outliner http://gsnedders.html5.org/outliner/
There is a full list from W3CSchool
No comments:
Post a Comment