Page 120 - CodePilot V5.0 C7
P. 120
Code Write the HTML code to present the given web page using CSS properties to style the
9 background, text and lists.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>Programming Languages</TITLE>
<STYLE>
LI{COLOR:#990000; BACKGROUND-COLOR:#ffdddd;}
</STYLE>
</HEAD>
<BODY STYLE="BACKGROUND-COLOR:#fffaf0;">
<H1 STYLE="COLOR:#444;">Popular Programming Languages</H1>
<UL STYLE="BACKGROUND-COLOR:#ffe;">
<LI>Python</LI>
<LI>Java</LI>
<LI>C++</LI>
<LI>JavaScript</LI>
</UL>
</BODY>
</HTML>
RAPID RECALL Tick ( ) if you know this.
1. The description or definition list is defined using the <DL> tag.
2. An unordered list is a bulleted list created with the <UL> tag and closed with </UL>.
TABLES IN HTML
Another way to arrange data in HTML is with a table using the <TABLE> tag, which organises
information in rows and columns.
The following are the advantages of using tables:
Tables allow you to summarise content in one of the easiest ways.
Tables enable you to present data in a tabular format rather than in the default paragraph style.
Tables help you easily compare different sets of data by placing them side by side.
118
CodePilot (V5.0)-VII

