HTML Table Tag

Updated:06/24/2024 by Computer Hope

  A table in HTML makes a lot of sense when you want to organize data that would look best in a spreadsheet.

  Html Table  arrange data like text, images, links, other tables, etc. into rows and columns of cells. A table in HTML makes a lot of sense when you want to organize data that would look best in a spreadsheet. An HTML table is a great way to display things such as financial data, calendars, pricing, feature comparison, the nutrition facts information panel, bowling scores, and many other tabular data.

Deeply nested tables (tables within tables within tables, etc) have been known to cause problems with some browsers and should be avoided if possible.
All of the tags below require an end tag unless otherwise specified.

Below is an example of a  Table Tag  written in HTML .
   <!-- 
Example contain a Table Tag  of html.
It is  just create a simple web page in web browser
Note : open note paid and Save this code on notepad with extension of .html 
then right click and select option of Open with in Window user ,run with any browser and display output .
   -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
   <!DOCTYPE html  >
          <html  >
            <head  >
            <title  >HTML table Tag  </title  >
            </head  >
     
            <body  >
            <table border = "1"  >
               <tr  >
                  <th  >Language  </th  >
                  <th  >java  </th  >
                </tr  >
             <tr  >
                 <td  >python  </td  >
                    <td  >1  </td  >
                 </tr  >
                 <tr  >
                     <td  >sala  </td  >
                     <td  >2  </td  >
              </tr  >
       
                  <tr  >
                 <td  >php  </td  >
                    <td  >3  </td  >
                  </tr  >
               </table  >
            </body  >
          </html  >
          
OutPut of above program

Features of HTML Table Tag

  •   HTML Table Tag  is help information presented in a two-dimensional table comprised of rows and columns of cells containing data.
  • HTML tags can contain one or more attributes. Attributes are added to a tag to provide the browser with more information about how the tag should appear or behave

Latest Html Article