Page 49 - Trackpad_V5_Book 7
P. 49
It contains the following tags:
<DL> tag (Definition List): This tag marks the beginning of the definition list.
<DT> tag (Data Term): This tag defines the names or terms.
<DD> tag (Data Definition): This tag describes each item in the description list.
Write HTML code to print a description list.
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE> List</TITLE></HEAD>
<BODY>
<H2> Essay on Noise pollution</H2>
<DL>
<DT>Sources of noise pollution</DT>
<DD>The noise from the road vehicles produces disturbance. The noise
from the traffic has increased due to increased density of road traffic.
Noises created in the construction of buildings, highways, roads, streets
with the use of hammers, bulldozers, pavement breakers, etc.</DD>
<DT>Effects of Noise Pollution</DT>
<DD>It induces deflation of muscles which results into a nervous breakdown
and strain. Irritation, headache, dismay are the most common effects of
noise pollution which ultimately affects work efficiency.</DD>
</DL>
</BODY>
</HTML>
NESTED LIST
An item on a list can contain another list. The list within a list is known as a nested list or
sub-list.
Write HTML code to create a nested list.
<!DOCTYPE html>
Lists and Tables in HTML5 47

