Let’s see an example with bottom border: Example of an HTML table with bottom borders:

Note that currently only MSIE recognizes the markup necessary to set the light and dark borders separately.

However, the attribute has been deprecated in favor of table borders styled with CSS.

Table Borders: Light and Dark. Historically, some Web authors have misused tables in HTML as a way to control their page layout. Note: Tables should not be used for page layout! If you don't want the border to go all around the table (or if you want different borders on each side of the table), you can use any of the following properties: border-top, border-right, border-bottom and border-left. In the previous example we set a single color for all the borders of the table. In this page we'll look at setting the “light” and the “dark” borders separately. Simple as that. The table border attribute could accept two values: 0 for no borders and 1 to display borders around table cells. Here's an example of how borders can be added to a table with CSS. borderは基本的にはCSSで設定するものですが、tableのborderはHTML上でも設定をすることが出来ます。 tableのborderを一つの線に変えたいと思っても、なかなかうまくいかなかったことも多いのではない … Formatting Table Borders. A more complex HTML table may also include , , , , , and elements.