|
A Basic Page
Lets just straight into code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<title>My Page!</title>
</head>
<body>Hello World
</body>
</html>
The above is a basic HTML page which conforms to W3C standards
for XHTML 1.0. The doctype tells thebrowser what type of document
it is. See the section on docutypes for more information.
The head tags contain all the important information such
as the page title, meta tags, css stylesheets, etc. You must
include a title tag in your head tag. Ths is the text that
will appear at the top of the browser.
The body tag contains the actual page and the elements on
it such as text, images, tables, etc. In this example 'Hello
World,' would be printed in the browser.
|