Basic HTML Structure

An HTML document contains two distinct parts, the head and the body. The head contains information about the document that is not displayed on the screen. The body then contains everything else that is displayed as part of the web page.

The basic structure of ANY HTML page is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html>
< head>
< title>
</title>
< /head>
<body>
</body>
</html>

The very first line: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> is not technically required, but is a code that tells the browser what version of HTML the current page is written for.

Enclose all other content within <html>...</html> tags. Inside is first the <head>...</head> and then the <body>...</body> sections.

The <title>...</title> tags are not required, but they go inside the head if used. Look at the top left of this web browser, where it says LOOK HERE!!!! The head of this HTML document contains the line:

<title>Look Here!!!!</title>