How to display table body in HTML

WBOY
Release: 2023-08-30 19:29:02
forward
1032 people have browsed it

How to display table body in HTML

Use the

tag in HTML to display the body of the table. Thetag of HTML is used to add body to the table. The tbody tag is used together with thead tag and tfoot tag to identify each part of the table (title, footer, body).

The following are the attributes of the

tag: ##align right ##DEPRECATED char is deprecated charoff has been Deprecated valign #DEPRECATED Example
Attributes

Value

Description

left

center

justify

char

- Visual alignment.

Character

- Specifies the characters on which to align the text. Used when align = "char".

pixels or %

- Specifies the alignment offset (expressed as a pixel or percentage value) from the first character. Used when align = "char".

top

middle

bottom

baseline

- Vertical alignment.

You can try running the following code to display the table body in HTML:

   HTML tbody Tag 
...more rows here containing four cells... ...more rows here containing four cells...
This is the head of the table
This is the foot of the table
Cell 1 Cell 2 Cell 3 Cell 4
Cell 1 Cell 2 Cell 3 Cell 4
Copy after login

The above is the detailed content of How to display table body 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!