Skip to content

Instantly share code, notes, and snippets.

@basicxman
Created August 9, 2010 03:15
Show Gist options
  • Save basicxman/514871 to your computer and use it in GitHub Desktop.
Save basicxman/514871 to your computer and use it in GitHub Desktop.
HTML Teaching 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- The `DOCTYPE` is used to tell the browser what version of HTML it should use. -->
<!-- The `html` tag defines the root of the document, and various attributes. -->
<!-- Since HTML is based off XML markup, xml:lang and xmlns tell the browser certain things to follow. -->
<html lang="en-us" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<!-- The `head` tag contains meta-data about the page, information that helps the browser render our markup. -->
<head>
<!-- The contents of the `title` tag are displayed in the window/tab bar of your browser. -->
<title>Minimum XHTML 1.0 Page.</title>
<!-- Here we're just telling the browser the encoding and type of page we're serving. -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<!-- The `body` tag contains the actual content, things the browser needs to display in it's rendering. -->
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment