With HTML 4, you can stipulate that a border be placed around the cells in a table using the
border
parameter, e.g.:
<table border="1">
. However with
HTML5, use of the "border=" attribute for putting a border around
elements of a table has been deprecated as has setting the padding around
elements in a table with cellpadding
, e.g.,
<table border="1" cellpadding="3">
. If you check your HTML
code for adherence to the HTML 5 standard with the
Nu Html Checker provided by the
World
Wide Web Consortium, you will see an warning displayed if you have used
the border attribute and an error displayed for use of the cellpadding
attribute. You can achieve an equivalent table display using
Cascading Style Sheets, however, by
adding a style section for
the table and the th and td elements to set the border and
setting cell padding
in a style section or for each td and th element