Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.48 KB

HTML-Cheatsheet-For-Creating-Table.md

File metadata and controls

61 lines (42 loc) · 1.48 KB

Table Tags

<table> </table> Used to creates a table

<tbody> </tbody> used to group the body content in an HTML table

<tr> </tr> Used to add row in a table <td> </td> Used to add a cell in a row

<th> </th> Used to add titles to rows and columns of a table

<thread> </thread> Defines the headings of table columns encapsulated in table rows

<tfoot> </tfoot> Uses table rows to give footer content or to summarize content at the end of a table

Table attributes

<caption>..</caption> Used to add caption

<tr> bgcolor="color"</tr> used to specify the background color of a table row

<table border=?> Used to sets the width of the border around table cells

<table cellspacing=?> Used to sets the space between table cells

<table cellpadding=?> Used to make space between a cell's border and its contents

<table width=?> Used to sets width of the table in pixels or as a percentage

<tr align=?> Used to make Text align for cells within the row (left/center/right)

<td align=?> Used to sets alignment for cells (left/center/right)

<tr valign=?> Used to sets vertical alignment for cells within the row (top/middle/bottom)

<td valign=?> Used to sets vertical alignment for cell (top/middle/bottom)

<td rowspan=?> Used to set the number of rows a cell should span (default=1)

<td colspan=?> Used to set number of columns a cell should span

<td nowrap> Used to prevents lines within a cell from being broken to fit