Home > Article > Web Front-end > How to write html table code
tag definition), the letter td refers to table data, that is, the content of the data cell. Data cells can contain text, pictures, lists, paragraphs, forms, horizontal lines, tables, and more. Recommended video tutorial: " HTML Video Tutorial" ##Form Example <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table>HTML table and border properties If the border property is not defined, the table will not display borders. Sometimes this is useful, but most of the time, we want to show the border, for example: <table border="1"> <tr> <td>Row 1, cell 1</td> <td>Row 1, cell 2</td> </tr> </table> For more HTML-related technical articles, please visit the HTMLTutorial |
The above is the detailed content of How to write html table code. For more information, please follow other related articles on the PHP Chinese website!