Page 50 - CA 165 ver 1.0 Class 10
P. 50
No extra space should be given after the start of the bracket. If the browser encounters a space, it may
not recognize the tag and will not display the information correctly. Tags are not case-sensitive, but a
common convention is to write them in capital letters so that they are prominent in the coded document.
Container Tag
The tags which are used in pairs are called ‘Container Tags’. It has an opening and a closing tag. The
closing tag is same as opening tag but it is used with a forward slash(/) before the tag name. Such tags
define a section of text and specify the formatting of all the content inside it. These tags are also referred
to as paired tags or ON/OFF tags. Some container elements are:
<HTML>
<HEAD>
<TITLE>
<B>
<CENTER>
For example:
<H1>............ </H1> (Contains opening and closing tags for displaying headings.)
<BLOCKQUOTE>
............ (Contains opening and closing tags to indent text inside it.)
</BLOCKQUOTE>
Empty Tag
Empty tags are standalone tags which are not used in pair. Such tags do not have any ending tag and
indicate ‘one time’ instructions. Empty tags represent formatting constructs such as line breaks, inserting
images, etc.
These tags have only an ON tag. ‘ON’ tag refers to start tag and ‘OFF’ tag refers to close/end tag. The
empty tags do not act on block of text but they perform their task at the insertion point only. These tags
are also termed as singular tags. For example:
<HR> (It is used as single tag and it inserts a horizontal rule.)
<BR> (It is used as single tag for line break.)
Element
It refers to different sections that include opening or closing tag and the content within it. It is the
fundamental component of the structure of an HTML document that includes distinctive components
such as body, title, paragraph or list. Elements are similar to the tags, but we can say that all tags in one
section together with the text or attributes inside are referred to as elements.
An element has three parts:
a start tag
an end tag
content between start and end tags
For example:
<TITLE> My First Webpage </Title>
48 Touchpad Computer Applications-X

