Dartmouth Class Webmasters Association

Help your Class stay connected!

Online

There are 2 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Login





 


 Log in Problems?
 New User? Sign Up!

Basic HTML Page Structure


A basic HTML page requires several components:

  • Declaration of a document type so the user's browser knows which interpreter to use when displaying the page.

  • A pair of html tags to contain the page:
    <html> page </html>

  • Inside the html tag container are two 'containers' identified by two pairs of tags. These containers hold the header information and the body of the page.

  • A pair of head tags contain 'header' information, things like scripts and styles and meta-tags for search engines:
    <head> header information </head>

  • A pair to body tags contain the body, or actual code for the page content:
     <body> html code to generate a page </body>

  • Note: white space is (generally) ignored.

This is what it might look like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<title>Sample Page Title</title>
	<meta name="generator" content="BBEdit 8.7" />
</head>
<body>

</body>
</html>
XML Revisions of $tag
Page history :: Last Editor : Admin :: Owner : Admin ::
Valid XHTML :: Valid CSS :: Powered by pnWikka 1.0 (A wiki fork from WikkaWiki)