HTML 5 Tutorial

HTML 5 Document Structure

Converting to HTML 5

The typical code for a simple HTML version 5 page would look something like the following (this is the HTML equivalent of a "Hello World" program):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Example Only</title>
  </head>
  <body>
    <p>This is only an example. For more information, see
      <a href="http://www.ExampleOnly.com/" alt="ExampleOnly.com"/>
    </p>
  </body>
</html>

Prev: Page 3 Next: Style Sheets 

Home > Tutorial > HTML Code

Viewing mobile website page. Switch to WML or Full HTML