Ask a Teacher



how to create tables in html?

Tables are defined with the <  table   > tag.

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.

Example :
< table border="1" style="width:100%" >
  < tr >
    < td >Jill< /td >
    < td >Smith< /td > 
    < td >50< /td >
  < /tr >
  < tr >
    < td >Eve< /td >
    < td>Jackson< /td > 
    < td >94< /td >
  < /tr >
< /table >


comments powered by Disqus