How to create table rows and columns in HTML?

WBOY
Release: 2023-09-09 13:45:06
forward
1213 people have browsed it

How to create table rows and columns in HTML?

HTML tables allow us to arrange data in rows and columns on a web page.

We use the

tag to create tables in HTML. A table consists of rows and columns. You can use one or more , and tags. For table rows and columns, we use and
,
elements to set headers, rows and columns, and table data.

Table rows are defined by

tags within the

Example

The following is a sample program to create table rows and columns.

    

Tables in HTML

Copy after login

Example

The following is another example program that creates table rows and columns.

    

Adding table rows and colomns in HTML

S.no Name Age Country
1 Kohli 34 India
2 Rabada 29 South Africa
3 Starc 33 Australia
Copy after login

Example

Below is another example program for creating table rows and columns.

    

Adding table rows and colomns in HTML

Cricketers...
S.no Name Age Country
1 Kohli 34 India
2 Rabada 29 South Africa
3 Starc 33 Australia
Copy after login
tag respectively.

The above is the detailed content of How to create table rows and columns in HTML?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!