Home > Article > Web Front-end > How to make the border of html table? HTML table creation and examples
This article mainly tells you about the border usage of html table table tags. Generally, we set the border line to 1 to demonstrate the border method. Next, let’s take a look at this article about the use of borders in html table table tags
First, let’s take a look at how the table is defined:
The table is defined by the
tag). The letters td refer to table data, the contents of data cells. Data cells can contain text, pictures, lists, paragraphs, forms, horizontal lines, tables, and more. Okay, let’s start by making a simple table: <!doctype html> <html> <head> <meta charset="utf-8"> <title>PHP中文网</title> </head> <body> <table border="1" width="300px" height="100"> <tr><td><td><td></td></td></td></tr> <tr><td><td><td></td></td></td></tr> <tr><td><td><td></td></td></td></tr> </table> </body> </html> This is a simple table with three rows and three columns, as shown in the picture:
For many people who are new to HTML, table
|
The above is the detailed content of How to make the border of html table? HTML table creation and examples. For more information, please follow other related articles on the PHP Chinese website!