STRUCTURE OF AN HTML DOCUMENT

An HTML document consists of two, main parts: the Head and the Body.

  • HEAD
    Head is the first part of an HTML document. It consists of the Title page and other parameters that the browser will use.
  • BODY
    The actual of a page are found in the body, which includes the text and the tags. The textual part gives the actual information contained in a web page and the tags define the appearance of the document.
  • TAGS
  1. Every HTML: tag is a name followed by an optional list of attributes, ll enclosed between less than and greater than brackets.
  2. The beginning tag starts with the name of the tag and the ending tag starts with a slash followed by the name of the tag as shown:
    <B>Starting and Ending tag</B>
  3. Some tags can be used alone and some must be used in pairs.
  4. The starting tag can have attributes and values. The ending tag cannot have attributes or values, but must have a slash before the name.
  5. An attribute, if present in a tag, must be followed by an equal sign and a value associated with it.

Leave a comment