The Essential Tags

There are four main essential tags necessary to present an HTML document.  Let’s revisit the basic HTML example we saw in the HTML Introduction.

<html>
  <head>
  <title>Page Title Goes Here</title>
</head>
<body>
  This is where the main content goes.
</body>
</html>

As shown above, the <html> tags contain all the markup for a web page.  The <head> tags contain tags and content used to describe the HTML document.  For example, the <title> tag will show in the title bar of the web browser window.  The <body> tags contain all tags and content for the presentation of the page by a web browser.

You’ll notice all the opening and closing tags are presented in lowercase.  This is a specification of XHTML 1.0 by the W3C.  XHTML is basically the same as HTML, but it contains a set of rules to make HTML documents more readable.  We will point out how to properly use XHTML throughout this tutorial.

Bookmark and Share

Popularity: 3% [?]