Friday, September 17, 2021

HTML 101: Table

 Although<div> and <span> have taken over table. The <table> tag was used as  a container for HTML table data, which is used to mark up tabular data. 

The syntax is:

         <table>

                 <tr>

                        <td>  cell 1</td>

                        <td> cell 2</td>

                        <td> cell 3</td>

                </tr>

                 <tr>

                        <td> cell 1</td>

                        <td> cell 2</td>

                        <td> cell 3</td>

                </tr>

        </table>







  • table: the main container of all the cells
  • tr: defines a row of cells
  • td: defines a new cell

No comments:

Post a Comment

HTML 101: Form

  I believe that everyone who has made use of the internet knows what a form is but in case you don't know, a form is a way of receiving...