Sensation create table (Basic HTML)

On occasion I am trying to complete the sheet that is not over the Basic HTML you have learned in previous articles. Now you're going to play how to make a table.

Understanding briefly about the table is a list of information in the form of data that is created in the form of rows and columns.

To display a table in the browser page you have to know the elements and attributes. Quite a lot, but take it the results will be comparable to what you learn. Because I think in learning basic html, create a table one of my favorite materials.

What should you know? Element table include:
  • Caption: This element is used to give the title of the table to be created, its attributes are: align that has a value of "Top" (the title is on the table) and the "bottom" (where the title was under the table).
  • TR (table row): specify rows in the table
  • TH (table header): a cell in the column header, in bold and at the center of the cell
  • TD (table data): data content of column cells
While Attribute to create the table include:
  • Align: used to determine the position of the table that will be created as left (L), center (middle), right (right)
  • BGCOLOR: background color for the table
  • Border: Specifies the border on the table, using a pixel size.
  • Cellpadding: distance to the edge of the cell contents of the cell
  • Cellspacing: distance between cell
  • Width: specify the width of the table
  • Height: height specify the table
Write the following script:



The result will be as shown below:


Write the following script:


The result will be as shown below:


Write the following script:


The result will be as shown below:



Learn while you still have time, before you get old and lose the opportunity to explore your talent! 
May be useful :-)

0 comments:

Post a Comment