HTML5 HELLO WORLD Example


HTML5 has come a long way! It is now supported by all major desktop and mobile web browsers (Google's Chrome, Mozilla Firefox, Safari e.t.c) It is more consistent and has added a lot of new APIs that make creating web applications easy. Some features,

  • New Doctype.
  • New parsing rules.
  • New APIs : video, progress, nav, canvas e.t.c
  • New input attributes: date, time, email, and URL.
  • Drag & Drop API ...
  • Read more : http://www.w3.org/TR/html5-diff/
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>HTML5 : Hello World Example</title>
    </head>
    <body>
        <h1>Hello World</h1>
        <p>
            Hey there!
        </p>
    </body>
</html>

As a student, the best thing about Html5 is its doctype (no need for any namespace). In <html> tag you can set language example : lang="en"