Do You Like Our Website? Share With Others!
    
What is HTML Part II
The majority of tags HTML is used in pairs, i.e. for the certain tag, we shall name its opening, in the document there is a corresponding closing tag. By rules HTML the closing tag enters the name the same as and opening, but with a symbol / (a straight line) before a name of a tag. Unique basic distinction of pair tags is that closing tags do not use parameters.
Tags, which require corresponding finishing tags, we shall name tags - containers. Everything, that is written down between a corresponding opening and closing tag, we shall name contents of the tag - container. Sometimes the finishing tag can be omitted. For example, for a tag describing the tables given for a cell <TD>, the corresponding closing tag </TD> can be omitted always. The termination of the data for a cell of the table will be recognized on occurrence of the next tag <TD>> or a tag of the ending of a line of the table </TR>. However it is strongly recommended to use close tags especially if you are using WYSIWYG HTML editors (such as Dreamweaver or FrontPage)
There are a number of tags for which finishing tags fall the majority of authors of documents. As an example the tag of an element of the list <LI> or a tag of the paragraph <P> can serve. Modern browsers in many cases correctly format documents if some finishing tags are omitted, however such practice cannot be recommended.
A number of tags basically do not require finishing tags. As examples indications of a base font <BASEFONT> can serve a tag of an insert of images <IMG>, compulsory translation of a line <BR>, etc. Frequently from the applicability of a tag it is possible to guess, whether it requires in finishing.
There are general rules of interpretation of tags browsers. As against programming languages in which erroneous operators result in delivery of corresponding messages at a stage of compilation of the program and demand editing, in HTML it is not accepted to react to incorrect record of tags. Incorrectly written down tag or its parameter should be ignored by a browser simply. This general rule for all browsers under which action fall not only wrongly written down tags, but also tags, not recognized the given version of a browser. As an example the tags suggested and realized for a separate browser and unknown for another browser can serve. For example, the tag - container <NOFRAMES> which serves for granting the alternative information to the browsers which are not providing support of frame structures, will not be recognized by such browsers. The browser supporting frames, having met a tag <NOFRAMES>, will pass included information. And the browser not familiar with frames, naturally, will not understand also a tag <NOFRAMES>. However, according to the resulted rule, this tag will be simply missed, but all subsequent information will be displayed.
|