table border attribute
The border attribute on the table element:
- allows you to add a border to your table
- border is a specific attribute → can be applied ONLY on the next html element: table
Examples
<table | attribute | = | "value(s)" | > | ... | <⁄ | >Examples |
---|---|---|---|---|---|---|---|
1. | border | = | 1, "" | <border="1"> ... <⁄ > <border=""> ... <⁄ > |
Video demonstration table border attribute
HTML5 table border attribute tutorial
min | video details |
---|---|
00:04 | video tutorial: table element, border attribute |
00:09 | border attribute is absent on table element |
00:17 | → the table has no border |
00:21 | adding the border attribute to table element |
00:31 | the table has a border surrounding each cell of the table |
00:35 | border attribute values: "" empty string OR 1 both producing the same effect |
00:39 | no change in browser display: table's border is still displayed |