Image

HTML & CSS - HTML TABLES - HTML TABLES

HTML TABLES

The HTML <table> tag is used for defining a table in an HTML document. The <table> tag contains other tags that define the structure of the table. tables are divided into table rows with the <tr> tag.Table rows are divided into table data with the <td> tag. A table row can also be divided into table headings with the <th> tag. The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells.

EX
<!DOCTYPE html>
<html>
<body>
<table style="width:50%">
 <tr>
    <td>C</td>
    <td>C++</td>		
    <td>java</td>
  </tr>
  <tr>
    <td>html</td>
    <td>html5</td>		
    <td>css</td>
  </tr>
  <tr>
    <td>oracle</td>
    <td>sql</td>		
    <td>mysql</td>
  </tr>
</table>
</body>
</html>
O/P
C          C++        java     
Html      html5      css  
Oracle   mysql      sql