HTML Basic Tags
- - The main container for HTML pages
- - The container for page header information
- The title of the page - The main body of the page
Remember that before an opening tag, an XHTML document can contain the optional XML declaration, and it should always contain a DOCTYPE declaration indicating which version of XHTML it uses.
Now we will explain each of these tags one by one. In this tutorial you will find the terms element and tag are used interchangeably.
The Element:
The element is the containing element for the whole HTML document. Each HTML document should have one and each document should end with a closing tag.
Following two elements appear as direct children of an element:
As such, start and end HTML tags enclose all the other HTML tags you use to describe the Web page.
The Element:
The
element is just a container for all other header elements. It should be the first thing to appear after the opening tag.Each
element should contain aelement indicating the title of the document, although it may also contain any combination of the following elements, in any order: The
tag is used to areate a "base" url for all links on the page. Check HTML Base tag. The
The tag is used to link to an external file, such as a style sheet or JavaScript file. Check HTML Link tag.
The