Creating Lists: Unordered List
Creating Lists: Unordered List
You can create a list in HTML. However it is a little bit tough. In most cases, we use two types of
lists:
Unordered List
Ordered List
To display any item in a list, we use the <li> tag which stands for List Item. It is an empty
element tag.
Unordered List
Ordered List
Start Attribute: Specifies the position from where you want to start a list.
Creating Tables
To create a table in HTML, we use the Table <table> tag.
To specify a table heading, use a Table heading <th> tag
To specify a table row, use a Table row <tr> tag
To give table data, use the tag <td>. If there are multiple columns, continue typing, but close the
<td> tag and start a new one.
Border color Attribute: This attribute specifies the border color. The default color is grey, but
we can change it.
Background color Attribute: This attribute specifies the background color of the table. The
default color is grey, but we can change it.
Aligning Attribute: This attribute specifies the aligning of the content of the table. By default,
the content is left aligned, but we can change it with center or right.
Cell Padding Attribute: This attribute specifies the distance between the content of the table
and the cell walls. The value is specified in pixels.
Cell Spacing Attribute: This attribute specifies the minimum distance between two adjacent
cells. The value is specified in pixels.
Height and Width Attribute: This attribute specifies the height and width of the table. The
value can be specified in percentage or pixels.
Background color Attribute: This attribute specifies the background color. The default color
is grey, but we can change it.
</tr>
<tr>
<td>3</td><td>Prabal</td><td>A1</td>
</tr>
</table>