Tags are instruction that are embedded directly into the text of the document. An HTML tag is a signal to a browser that it should do something other than just throw text up on the screen. By convention all HTML tags begin with an open angle bracket (<) and end with a close angle bracket (>).
HTML tahs can be of two types:
A tag is said to be a paired tag if it, along with a companion tag, flanks the text. For example the <B> causes the text contained between them to be rendered in bold . the effect of other paired tags is applied only to the text they contain.
In paired tags, the first tag (<b>) is often called the opening tag and the second tag (</b>) is called the closing tag.
the opening tag activities the effect and the closing tag turns the effect off.
The second type of tag is the singular or stand-along tag. A stand-alone tag does not have a companion tag. For example <br> tag will insert a line break. this tag does not require any companion tag.
Note: Some HTML tag require additional information to be supplied to them. For instance, when a picture
is placed on the screen, information like the height and width if the picture can be sprcified.
Additional information supplied to an HTML tag is known as attributes of a tag. Attributes are written immediately following the tag, separated by a space. Multiple attributes can be associated with a tag, also separated by a space.
The skill in creating an HTML. (web)pages would lie in knowing the functionality of all HTML tags and tag attributes where applicable. This skill can then be used to format large quantities of textual information as required and have this ready to use on a website.
© 2016-2020 Students Empire