Page 4 - LoudOffice_Guide-to-HTML_Part-II_Advanced.PDF
P. 4

Ø The h e i g h t attribute controls the height of your table.  The height can be expressed
                       in terms of pixels or percent.  Although useful, this attribute should only be used
                       sparingly as it is easy to make mistakes.
                                     attribute controls the width of the border.   This size is measured in
                   Ø The b o r d e r
                       pixels.
               If the < t a b l e > tag of the table above had attributes of w i d t h = ” 5 0 % ” and b o r d e r = ” 1 ”, it
               would appear as follows:






               Additionally, it is possible to control the spacing of the cells and the padding within cells
               within the table through the use of the c e l l s p a c i n g and c e l l p a d d i n g attributes.

                                    attribute controls the spacing between cells (consider it the same as
               The c e l l s p a c i n g
               having “walls” around the cells).  For instance if the table above had a c e l l s p a c i n g of 5,
               the table would appear as below:









               The c e l l p a d d i n g attribute controls the amount of white space within cells.  For instance,
               if the table above were to have a c e l l p a d d i n g of 10, the table would appear as follows:












               To be clear, the HTML code for the table to this point would be:



               LoudOffice.com Guide to HTML – Part II                                                Page 4
   1   2   3   4   5   6   7   8   9