Tags which are pre-defined instructions are used to establish the characteristics of the text in the document. All HTML documents should contain certain standard HTML tags. Each document consists of head and body text. The head contains the title and the body contains the text, images and other elements of the page. The title element contains your document title and identifies its content in a global context.
Tags are usually in pairs, an opening tag and a closing tag which surround the words they modify.
The HTML code gives instruction on how to display the document as well. The HTML code also defines the color of the print and the background of the page. In lines 3 and 4 of the example below you can see how the hexadecimal code has defined the color of the background, the text, the links and the visited links. Since color controls are attributes of the BODY tag, colors can only be set once for the entire document. Comments can be placed anywhere in the document and are there for you to see but do not actually show up in the published document.