Tags used to make HTML Tables



Here are a few normally used HTML tags that may be used to create and layout a desk in a

<table>: Defines the table.

<caption>: Defines a caption for the desk.

<th>: Defines a header cell within the table.

<tr>: Defines a row inside the desk.

<td>: Defines a cell in the table.

<thead>: Groups the header content in a desk

<tbody>: Groups the frame content material in a table

<tfoot>: Groups the footer content in a desk

colspan and rowspan: These attributes may be delivered to <td> or <th> elements to specify how many columns or rows a cellular ought to span.

<colgroup>: Specifies a group of 1 or extra columns in a table for formatting

<img>: To consist of pix in the table cells.

Magnificence and identification attributes: These may be brought to <table>, <th>, <tr>, <td> factors to apply CSS styles and JavaScript interactivity to specific components of the desk.
Note that it's not advocated to use tables only for format functions, it is better to apply CSS and HTML semantic factors to obtain that.

Example HTML Table code





*

Post a Comment (0)
Previous Post Next Post

Iklan Tengan Artikel 1