Page 48 - Trackpad_V1_Book 7_Flipbook
P. 48
<LI>Olive</LI> It contains the following tags:
<LI>Persimmons</LI> <DL> tag (Definition List): This tag marks the beginning of the definition list.
</OL> <DT> tag (Data Term): This tag defines the names or terms.
</BODY> <DD> tag (Data Definition): This tag describes each item in the description list.
</HTML>
Write HTML code to print a description list.
UNORDERED LISTS <!DOCTYPE html>
An unordered list is used when the items in the list are not required to be in a specific order. It is <HTML>
also called a bulleted list. An unordered list is enclosed within the <UL> ....... </UL> tag. Each item <HEAD>
in the list is given an <LI> tag, which specifies the list item. <TITLE> List</TITLE></HEAD>
<BODY>
Write HTML codes to print an unordered list.
<H2> Essay on Noise pollution</H2>
<!DOCTYPE html> <DL>
<HTML> <DT>Sources of noise pollution</DT>
<DD>The noise from the road vehicles produces disturbance. The noise
<HEAD>
from the traffic has increased due to increased density of road traffic.
<TITLE> Unordered List </TITLE> </HEAD>
Noises created in the construction of buildings, highways, roads, streets
<BODY> with the use of hammers, bulldozers, pavement breakers, etc.</DD>
<DT>Effects of Noise Pollution</DT>
<H2>Some examples of the many fields of public health:</H2>
<DD>It induces deflation of muscles which results into a nervous breakdown
<UL>
and strain. Irritation, headache, dismay are the most common effects of
<LI>First responders</LI> noise pollution which ultimately affects work efficiency.</DD>
<LI>Restaurant inspectors</LI> </DL>
</BODY>
<LI>Health educators</LI>
</HTML>
<LI>Scientists and researchers</LI>
<LI>Nutritionists</LI>
<LI>Community planners</LI>
<LI>Social workers</LI>
<LI>Public health
physicians</LI>
</UL>
NESTED LIST
</BODY>
</HTML> An item on a list can contain another list. The list within a list is known as a nested list or
sub-list.
DESCRIPTION LISTS
Write HTML code to create a nested list.
A description list is not a list of items. We can use this type of list formatting for defining terms on
<!DOCTYPE html>
a webpage. It is also called distributed list.
<HTML>
A description list is enclosed within the <DL> ....... </DL> tag. <HEAD><TITLE> Nested List</TITLE></HEAD>
<BODY>
46 Trackpad (Version 1.0)-VII

