Home  >  Article  >  Software Tutorial  >  How to create a table with 3 rows and 2 columns using HTML tags

How to create a table with 3 rows and 2 columns using HTML tags

PHPz
PHPzforward
2024-01-05 20:25:20895browse

How to write a table with three rows and two columns using HTML tags

//Here you can set the name of the row

//Here you can set the name of the row

//Here you can set the name of the row

Column name Column name
Column name Column name
Column name Column name

represents row labels; represents column labels.

How to create a table with 3 rows and 2 columns using HTML tags

Extended information:

Use HTML code to create a table with two rows and two columns:

Month Savings
January $100

Note: The tags in the table in HTML all appear in pairs, starting and ending.

What tags does the html table contain?

A simple HTML table consists of the table element and one or more tr, th or td elements.

For example:

month income
January $100

Description: The tr element defines the table row, the th element defines the header, and the td element defines the table unit.

Complex HTML tables include caption, col, colgroup, thead, tfoot and tbody elements.

The above is the detailed content of How to create a table with 3 rows and 2 columns using HTML tags. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:docexcel.net. If there is any infringement, please contact admin@php.cn delete