| Be My Friend

Previous

Next


How to Create a Table in HTML

HTML Tables | HTML Table Tag | HTML Tables Examples | HTML Table Border | HTML Cell Padding

Using HTML tables you can arrange texts, images, links, etc into rows and columns.

With the help of an HTML table tag ( <table> ), you can display any data in the tabular form like rows and columns.

You can create HTML tables using <table> tag with the help of <tr> tag, <td>tag and the <th> tag.

HTML Table Tag

  • The <table> tag defines an HTML table.
  • The <th> tag defines each table header.
  • The <tr> tag defines each table row.
  • The <td> tag defines each table cell or data. here you can insert text, images, lists Etc.

HTML Tables Examples



HTML Table with Border

There are two ways to add HTML Table Border.

1. By using HTML Table border attribute.



2. HTML Table with CSS.



HTML Table with cell Padding

Cell padding in HTML specifies the space between the cell content and its borders. To set the cell padding, use the CSS padding property.

If you do not specify a padding, the table cells will be displayed without padding.



IF YOU LIKE OUR HTML TUTORIALS PLEASE DON'T FORGET TO SHARE

Subscribe for more videos on our Youtube channel. if you like our tutorial please Like and Subscribe to our Facebook and Youtube.



Previous

Next



YOUR COMMENTS ARE MOST IMPORTANT TO US:

0 Comments



Why basictutorials.in?

To Learn:

Tutorials in a simple Way.

Excel with downloadable samples.

HTML with sample website code.

PowerPoint presentations.

MS Word for offical use.

Useful Tutorials