Tags are the bones of an HTML document. They tell the browser what effect is to be applied on the contents following a tag. Each tag has a specific effect associated with it.In addition, a tag may also contain attributes, which provide additional information to the browser program. Before we start discussing basic HTML tags,it is necessary to understand the structure of HTML tags.
Structure of HTML Tags
Every HTML tag consists of a tag name, sometimes followed by an optional list of attributes, all placed between opening and closing angle brackets ( ).
Each tag has certain attributes associated with it, which are called tag attributes. Tag attributes, if used, are given after the tag name but before the closing angle bracket each separated by one or more tab, space oe line feed characters. Tags attributes may appear in any order within the tag.
Tag names and their attributes are not case sensitive, i.e. they may be written in any type of letters. But for convenience, we will write tag names in capitel letters and attributes names in small letters.
Each attribute generally has a value, which is written after the equal sign (=) following the attributes name. For example, following are some attributes:
- By the above example, it is clear that generally attributes values are wretten without any quotation marks, but if an attributes value contains more than one word, than you have to bound them within quotation marks. The lenght of an attributes value is limited to 1024 character.
<HTML lang = en>