HTML 2
HTML 2
Ordered List:-
An Ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
Example:-
<ol>
<li>Darjeeling</li>
<li>Kurseong</li>
</ol>
Result:
1. Darjeeling
2. Kurseong
Page 4
HTML Tables:-
Tables are very useful to arrange in HTML and they are used very
frequently by almost all web developers. Tables are just like spreadsheets and they
are made up of rows and columns.
Page 5
Example:-
<table border=“1”>
<tr>
<td> Country</td>
<td> Capital </td>
</tr>
<tr>
<td> India </td>
<td> New Delhi </td>
</tr>
</table>
Result:-
Country Capital
India New Delhi
Page 6
Different table attributes:-
cell padding:- cell padding represents the distance between cell borders and
the content within.
Bgcolor:- we can set background colour for whole table or just for one cell.
Background:- we can set background image for whole table or just for one cell.
Page 7