Saturday, April 11, 2015

HTML5 Attributes - width , height , bgcolor

width ,height
  • height
    • default it is in pixels.
    • can give as a percentage of the window.
  • width
    • default it is in pixels.
    • can give as a percentage of the window.
    • If not specified, the table is only as wide as needed to display cell contents.
In the following example you can get an idea who to put those attributes in HTML code.




bgcolor
  • background color 
  • in HEX or as a name color
In the following example you can see , how to add same color to the whole table.





In the following example you can see , how to add colors for the rows.




In the following example you can see ,  how to add colors to columns.



No comments:

Post a Comment