立诚勿怠,格物致知
It's all about connecting the dots

Table Tag in HTML

Example

The following is an example code for a table consisting of 2 lines and 3 columns.


Line 1, Column 1 Line 1, Column 2 Line 2, Column 3
Line 2, Column 1 Line 2, Column 2 Line 2, Column 3

The table resulting from the above-mentioned code in a web browser is as below:

Line 1, Column 1 Line 1, Column 2 Line 2, Column 3
Line 2, Column 1 Line 2, Column 2 Line 2, Column 3

Web Browser Supporting Profile

Supporting Browsers: IT, Firefox, Chrome, Safari, Opera
Unsupporting Browsers: /
Conclusion: All major browsers support the <table> tag.


Optional Properties

Property Value Description
align left
center
right
You are advised to abandon using this tag any more.To achieve the equivalent effect, you can use corresponding style code.
This tag is used to define the relative alignment of the table to its surrounding elements.
bgcolor rgb(x,x,x)
#xxxxxx
colorname
You are advised to abandon using this tag any more.To achieve the equivalent effect, you can use corresponding style code.
This tag is used to define background color of the table.
border pixels This tag is used to define the width of the table border.
cellpadding pixels
%
This tag is used to define the padding area between the cell broder and the content in the cell.
cellspacing pixels
%
This tag is used to define the space between cells.
frame void
above
below
hsides
lhs
rhs
vsides
box
border
This tag is used to specify which part of the outer border is visible.
rules none
groups
rows
cols
all
This tag is used to specify which part of the inner border is visible.
summary text This tag is used to define the summary of the table.
width %
pixels
This tag is used to define the width of the table.
赞(0) 打赏
文章名称:《Table Tag in HTML》
文章链接:https://www.orzzone.com/table-tag-in-html.html
商业联系:yakima.public@gmail.com

本站大部分文章为原创或编译而来,对于本站版权文章,未经许可不得用于商业目的,非商业性转载请以链接形式标注原文出处。
本站内容仅供个人学习交流,不做为任何投资、建议的参考依据,因此产生的问题需自行承担。

评论 抢沙发

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力提供更多优质内容!

支付宝扫一扫打赏

微信扫一扫打赏

登录

找回密码

注册