Shrey RWPD Ala 2 1731229622
Shrey RWPD Ala 2 1731229622
Enrollment no:20231105060206
Subject: RWPD
Introduction to Lists
Content:
1.Definition of Lists in HTML:
•Lists are HTML elements that allow you to group a set of related items in a
•well-defined
•and structured manner.
•They are used to present data in a clear, organized format.
2.Importance of Lists in Web Development:
•Lists enhance readability by breaking content into manageable chunks.
•They are essential for creating navigation menus, organizing content, and struc
•information hierarchically.
3.Overview of Ordered and Unordered Lists:
•Ordered Lists (ol : Items are numbered, reflecting a specific sequence or order
)
•Unordered Lists (ul : Items are bulleted, where order does not matter.
)
TYPES OF LISTS
•They can be customized using attributes like type to change the marker style (e.g., numbers, letters, Roman numerals).
•They are simple to implement but powerful in conveying structured information.
Example:
• <ol>
• <li>Step 1: Preheat the oven.</li>
• <li>Step 2: Mix the ingredients.</li>
• <li>Step 3: Bake the mixture.</li>
• </ol>
Output:
Lists -- Ordered Lists
Ordered (Numbered)
<OL>
Lists:
<LI> Item One 1. Item One
<LI> Item Two 2. Item Two
<LI> Item Three 3. Item Three
<LI> Item Four 4. Item Four
</OL>
type="i/I/a/A/1"
Ordered List Attributes: (default)
i = i. Item One I = I. Item One a = a. Item One A = A. Item One 1 = 1.Item One
ii. Item Two II. Item Two b. Item Two B. Item Two 2. Item Two
iii. Item Three III. Item Three c. Item Three C. Item Three 3. Item Three
iv. Item Four IV. Item Four d. Item Four D. Item Four 4. Item Four
start="xx"
Lists -- Unordered Lists
Unordered lists:
<UL>
<LI>Item One • Item One
<LI>Item Two • Item Two
<LI>Item Three
<LI>Item Four • Item Three
</UL> • Item Four
1. Coffee
2. Milk
3. Tea
4. sugar
Attributes of <OL> tag
<li>CHAIN PRINTER
<li>DRUM PRINTER
</ol>
<P>NON-IMPACT PRINTER</P>
<OL START=4>
<li>LASER PRINTER
<li>ELECTROSTATIC PRINTER
</OL>
</BODY>
</HTML>
OUTPUT
Impact printers
1.DOT MATRIX
2.CHAIN PRINTER
3.DRUM PRINTER
NON-IMPACT PRINTER
4.LASER PRINTER
5.ELECTROSTATIC PRINTER
Nested Order List
• One ordered list might contain one or more ordered list that Is called as Nested Order lists.
• Example: An HTML document nested.html shows the use of Nested Order Lists with
attributes:
<HTML>
<HEAD>
<TITLE> Use of Nested Ordered Lists</TITLE>
</HEAD>
<BODY>
<OL TYPE = A START =3>
<LI> Fruits
<OL TYPE = I>
<LI> Apple
<LI> MANGO
<LI> Orange
</OL>
Example: An HTML document nested.html shows
the use of Nested Order Lists with attributes
• <LI> VEGETABLES
• <OL TYPE = I>
• <LI> Brinjal
• <LI> Cabbage
• <LI> Tomato
• </OL>
• </OL>
• </BODY>
• </HTML>
Unordered List <UL>