L8+ +List+and+Table
L8+ +List+and+Table
Lesson Topics
• List Tags and Its Attributes
• Table Tags
• Table Attributes
List Tags and Its Attributes
• HTML also features tags used for itemizing or
giving details with the use of list tags. Two
types of these tags are actually equivalent of
bullets and numberings in MS Office
List Tags and Its Attributes
• Ordered List – is equivalent to the
numbering feature of MS Office. Its list
items are marked with numbers or letters.
This is appropriate list type in itemizing
anything that has something to do with
sequences, steps, chronology or
hierarchy.
List Tags and Its Attributes
<ol> - Designates the start of an ordered list.
<li> - Designates an item in the list.
</li> - Closing tag for every list item.
</ol> - Designates the end of an ordered list.
List Tags and Its Attributes
Attributes Description Value
1 – use for the regular
numbering
disc – solid-shaded
Deprecated. Use styles bullets
instead.
circle – circular/hole
type Specifies the style of
bullets
the bullet points of the
list items square – dark square
bullets
List Tags and Its Attributes
• Sample Program
List Tags and Its Attributes
• Output
List Tags and Its Attributes
• Sample Output
Table Attributes
1. Table tag
Table Attributes
Attributes Description Value
background specifies
the cell
the background image of URL of the image
Number of columns
colspan merge multiple columns from the cell, to the
right
• Headings in a Table
• Headings in a table are defined with the <th>
tag.
Table Attributes
• Headings in a Table
• Headings in a table are defined with the
<th> tag.
Table Attributes
Table Attributes
Table Attributes