Applying Borders by Using Attributes in HTML5
By default, a table has no border.
To add a one-pixel border around both side of the table as around each individual cell.
To add attribute to the <table> tag, use this text
Like :- <table border=”1″>
The value of the border attribute increases the width of the outer border around the whole table.
The border attribute applies a border to all sides of all cells.
If you want to apply the border on some of the sides, use the frame and/or rules attributes.
Code
Output