The Basic Four
Basic HTML Tags
Four basic HTML tags are used for the proper construction and display of your WWW document:
- the <html> tag
- the <head> tag
- the <title> tag
- the <body> tag
They should appear in every WWW document you create. Each is illustrated below.
| The Basic Four HTML Tags: How They Work |
|---|
|
<html> -- </html> The <html> start tag signals the beginning of information to be displayed as a WWW document. The </html> end tag signals the end. Everything contained between them will be displayed as a WWW document by a browser. |
| <html> </html> |
|
<head> -- </head> The HEAD portion of your WWW document is where you place information regarding the document's title and other attributes. The <head> start tag signals the beginning. The </head> end tag signals the end. |
| <head> </head> |
|
<title> -- </title> The title of your WWW document goes in the HEAD section. The <title> tag identifies your WWW document. The text contained in this tag will be the text displayed at the top of the browser window. |
| <title>Anne's Web Page</title> |
|
<body> -- </body> The <body> start tag defines the document's attributes, which may include background color, background image (if any), text color and/or size, and link color. (Choose "Body" in the menu to the left for more information about these attributes.) The </body> end tag comes at the end of every WWW document. All text, images, links, and necessary HTML coding of your WWW document are placed between the BODY start and end tags. |
| <body> </body> |
All Together
Together, these four basic HTML tags are used to create the framework for every WWW document, like this
|
<html> <head> <title>Anne's Web Page</title> </head> <body> *** Content here *** </body> </html> |