
3
views
views
If you want to add a table into your website, you might consider using HTML to do it. Table is a fundamental part of web page layout and it helps to present information clearly and improve your website design. The process is not very different from creating a HTML file (your web page) so if you are already familiar with that, the steps will be very easy to follow. It will show the whole process starting from a very basic table to table with borders, title and headings.
Basic table layout with no borders
Open notepad
Once you have opened notepad, write the following code:
Save the file
Name the file Table1 and change the extension to .html:
Open Table1 file you saved in your browser, and your basic table will be displayed in the following form:
Table with border
Add the border to your table – it simply involves adding the border attribute to the opening tag
Add the border attribute to the code you used earlier a basic table as follows: The '3' represents the thickness of the border, so you can change it.
Save the file as Table 2 with. html extension:
Open Table2 in your browser. Your basic table will be displayed with the border now.
Comments
0 comment