0% found this document useful (0 votes)
1 views4 pages

Prac10

The document provides an example of HTML lists, demonstrating ordered, unordered, and definition lists. It includes practical examples such as steps to make tea, favorite fruits, and a combined packing list for a weekend trip. Each list type is clearly defined and illustrated with relevant items and descriptions.

Uploaded by

cbehan353
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views4 pages

Prac10

The document provides an example of HTML lists, demonstrating ordered, unordered, and definition lists. It includes practical examples such as steps to make tea, favorite fruits, and a combined packing list for a weekend trip. Each list type is clearly defined and illustrated with relevant items and descriptions.

Uploaded by

cbehan353
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Practical 10 Hamdan

INPUT:
<html>

<head>

<title>HTML Lists Example</title>

</head>

<body>

<h1>HTML Lists Example</h1>

<h2>1. Ordered List: Steps to Make a Cup of Tea</h2>

<ol>

<li>Boil water in a kettle.</li>

<li>Place a tea bag in a cup.</li>

<li>Pour the hot water into the cup.</li>

<li>Let the tea steep for 3-5 minutes.</li>

<li>Remove the tea bag and add sugar or milk if desired.</li>

<li>Stir and enjoy your tea.</li>

</ol>

<h2>2. Unordered List: Favorite Fruits</h2>

<ul>

<li>Apple</li>

<li>Banana</li>

<li>Strawberry</li>

<li>Mango</li>

<li>Pineapple</li>

</ul>

<h2>3. Definition List: Programming Languages</h2>

<dl>
<dt>Python</dt>

<dd>A high-level programming language known for its simplicity and readability.</dd>

<dt>JavaScript</dt>

<dd>A scripting language used to create dynamic and interactive web content.</dd>

<dt>Java</dt>

<dd>A class-based, object-oriented programming language designed to have as few implementation dependencies as
possible.</dd>

</dl>

<h2>4. Combined List: Weekend Trip Packing List</h2>

<ol>

<li>Clothes

<ul>

<li>T-shirt</li>

<li>Jeans</li>

<li>Jacket</li>

<li>Socks</li>

</ul>

</li>

<li>Eatable Food

<ul>

<li>Sandwiches</li>

<li>Fruits (e.g., Apples, Bananas)</li>

<li>Snacks (e.g., Chips, Cookies)</li>

</ul>

</li>

<li>Accessories

<dl>

<dt>Phone Charger</dt>

<dd>A device used to charge your smartphone.</dd>


<dt>Headphones</dt>

<dd>Audio devices used to listen to music or other audio privately.</dd>

</dl>

</li>

</ol>

</body>

</html>
OUTPUT:

You might also like