table command in html

A easy Table of HTML Contais tow rows and columns :
  
   <table>
     <tr>
       <th>month</th>
       <th>color</th>
     </tr>
     <tr>
       <th>march</th>
       <th>red</th>
     </tr>
   </table>

now means of these command are given below:-

1.The tag of <table> defines an HTML table.

2.An table of html consist of the table <table>one or more element <tr>,<th> And <td> elements.

3.To defines a table row we use <tr> element,To defines a table header we use <th> element and To defines a table cell we used <td> element.

4.to more complex our html table be also include <caption>,<col>,<colgroup>,<thead>,<tfoot> and <tbody> elements.

{note: The tables not should be used for page page layout! historically, `some web authors have misused in tables html as a way to control their page layout. however there are alternatives variety to using table of html for layout primilary using css.}

0 comments: