Web Design‎ > ‎

Anatomy of a Simple Web Page

The web page source below is a minimal page using XHTML 1.1.
Every html page must start with a DOCTYPE directive, then this basic structure: 
<html> <head> </head> <body> </body> </html>

For example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The title here will appear in the browser title bar or tab</title>
  <h1>Put the page title that will appear on the web page here</h1>
  <p>Most of your content will be in paragraphs that will be inserted
  between the "p" tags. Almost all of your web page content, headings,
  tables, lists, etc., will have to go between the "body" tags.</p> 

  <p>Try to make your html source code (this stuff) look neat and 
  organized and make sure it doesn't include anything that controls
  the style of the page - that is what CSS is for!</p>