Page 104 - CA_165_V2.0_Flipbook
P. 104
........................
</BODY>
</HTML>
The entire document is written inside <HTML>……</HTML> tags. It marks the beginning and ending
of an HTML coded document.
The head of an HTML document specifies information about the document. This section contains the
‘Title’ tag inside it. The ‘Head’ tag is written inside the <HTML> section.
Title section displays the title of the web page on the Title bar.
The Body section (pair of <BODY> ... </BODY> tags) specifies the main contents of a document.
3. Explain all the link related attributes used with the <body> tag, using a suitable example.
Ans. In <BODY> tag the following link attributes can be used: LINK, ALINK and VLINK.
LINK which has not yet been visited.
ALINK or Active Link which is in current use in a web page.
VLINK or Visited Link which was visited last.
Example: <BODY BGCOLOR = "Aqua" TEXT = "Red" LINK = "Yellow" VLINK = "Maroon" ALINK = "Green" >
LINK, ALINK and VLINK are not supported in HTML5.
4. What are Lists? Explain the types of lists giving suitable examples.
Ans. Lists are series of items i.e. names, values that can be arranged in an ordered way. The list may be either
ordered or unordered. An ordered list is a series of items displayed in sequence with it whereas an
unordered list displays special bullets in the beginning of each list items only. Ordered or Numbered list is
used to display a list of items in sequence. It begins with <OL> tag and it requires <LI> (List Item) tag to
be used along with it. The items which are followed by <LI> tag appear in sequence (e.g. numbers 1, 2, 3,
etc.) on the browser window.
Example : <OL>
<LI> List 1
<LI> List 2
...............
</OL>
Unordered or Bulleted list is used to insert bullets with the list of items. The <LI> (List item) tag is nested
inside the <UL> tag. The ‘TYPE’ attribute defines the type of bullets that is in the list. For example: disc,
square, circle, etc.
Example : <UL TYPE = "square">
<LI> List1
...............
</UL>
Definition list is used where terms are listed along with their description like in a dictionary or encyclopedia.
The definition list is the ideal way to present a glossary, list of terms, or other name/ value list.
<DL> Defines the start of the list
<DT> A term
<DD> Term definition
</DL> Defines the end of the list
102 Touchpad Computer Applications-X

