Tables are used on websites for arranging and displaying data in a grid format. The <table> tag defines an HTML table which consists of rows <tr> and cells <td> or <th>. Complex tables can also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements. Attributes like bgcolor, border, cellpadding and cellspacing control the table appearance.
The Essential Guide to HTML Tables: Structure, Layouts, and More
1.
2. Tables are used on websites for two major
purposes:
The obvious purpose of arranging
information in a table
The less obvious - but more widely used -
purpose of creating a page layout with the
use of hidden tables.
3. The HTML tables allow web authors to
arrange data like text, images, links,
other tables, etc. into rows and columns
of cells
4. The <table> tag defines an HTML table.
An HTML table consists of the <table> element
and one or more <tr>, <th>, and <td> elements.
The <tr> element defines a table row, the <th>
element defines a table header, and the <td>
element defines a table cell.
A more complex HTML table may also include
<caption>, <col>, <colgroup>, <thead>, <tfoot>,
and <tbody> elements.
6. 1. First advantage it is widely used.
2. Every browser supports HTML
language.
3. Easy to learn and use.
4. It is by default in every windows so you
don't need to purchase extra software
7. 1. It can create only static and plain pages so if we
need dynamic pages then HTML
is not useful.
2. Need to write lot of code for making simple
webpage.
3. Security features are not good in HTML.
4. If we need to write long code for making a
webpage then it produces some complexit
8. Use rowspan if you want to extend cells down
and colspan to extend across. You can
use rowspan="n" on a td element to make it
span n rows, and colspan="m" on a td element
to make it span m columns. Looks like your
first td needs a rowspan="2" and the
next td needs a colspan="4" .