Wednesday 21 April 2010

HTML5 Features You Should use Right Now

The folks at NetTuts created a video on HTML5 features you can use right now.  I would like to focus on 4 of them.



HTML DocType

Instead of including a long link to a DTD in each of your HTML documents, you can simple replace it with:

<!DOCTYPE html>


Character Set

You can define a character set much more simply.

<meta charset="utf-8"/>


No More Type Attributes

You are no longer required to add type attributes to the <style> or <script> tags. For example:

<script>
// your code here
</script>


or



<style>
p{ margin:0; }
</style>


I plan to test this a bit myself, but according to the author, Google is already using the DocType setting.

No comments:

Post a Comment