Skip to main content

Posts

HTML - Lists

HTML offers web authors three ways for specifying lists of information. All lists must contain one or more list elements. Lists may contain − <ul>  − An unordered list. This will list items using plain bullets. <ol>  − An ordered list. This will use different schemes of numbers to list your items. <dl>  − A definition list. This arranges your items in the same way as they are arranged in a dictionary. HTML Unordered Lists An unordered list is a collection of related items that have no special order or sequence. This list is created by using HTML  <ul>  tag. Each item in the list is marked with a bullet. Example <!DOCTYPE html> <html> <head> <title> HTML Unordered List </title> </head> <body> <ul> <li> Beetroot </li> <li> Ginger </li> <li> Potato </li> <li> Radis...

HTML - Tables

The HTML tables allow web authors to arrange data like text, images, links, other tables, etc. into rows and columns of cells. The HTML tables are created using the  <table>  tag in which the  <tr>  tag is used to create table rows and  <td>  tag is used to create data cells. The elements under <td> are regular and left aligned by default Example <!DOCTYPE html> <html> <head> <title> HTML Tables </title> </head> <body> <table border = "1" > <tr> <td> Row 1, Column 1 </td> <td> Row 1, Column 2 </td> </tr> <tr> <td> Row 2, Column 1 </td> <td> Row 2, Column 2 </td> </tr> </table> </body> </html> This will produce the following result − He...