html table tag,'html-table' tag wiki - Stack Overflow

As it relates to HTML, tables are used to display data in a tabular fashion. Questions regarding HTML tables should be asked by showing the source-code one has problem with, or, if the question is about a failed attempt to create a table according to the desires, the asker needs to show the failed try, describe the expectations and how the behavior was different.

The

Like any HTML tag, the

border defines tables border thickness. ie border="1"

dir defines the direction of the table. ie dir="rtl" or

dir="ltr"

cellpadding defines space around a cell's content i.e. cellpadding="10"

cellspacing defines space around cells ie cellspacing="10"

34raR.jpg

Tables are divided into a number of subelements:

is the tile of the table. It's optional but if present it has to be the first tag after the

,

, and will separate the table into their respective sections of header, body, and footer. Using these elements allows better semantic meaning for certain rows of the table, which may be titles to columns (in the header) or a total row (in the footer), rather than pushing everything into the body. If none of these are specified and the table immediately goes into rows, the browser will see it as all being contained within the body. starts a new row in the table. Table rows are not required

to be closed by a

but it is recommended to do so in most

cases in order to avoid confusion. A table row will continue until a

new row is opened or the header, body, or footer which contains it is

closed. A table can contain any number of rows.

defines header cell within a row, This will contains the

header information/title, and can be decorated differently in the

table.

defines a Standard cell within a row, which contains some

content/data. Like table rows, table cells are also not required

to be closed by a

. A table cell will continue until a new

cell is opened or the row which contains it is closed. A table row

can contain any number of cells. Similarly, the

element is

often used inside the table header. It is an alternative to a regular

table cell which sets it aside from other cells as a defining point

that identifies the information below or to the side of it.

Also, the cells in a

iCIVA.jpg

code for rowspan:

MergedTable First Row
Table Second Row

code for colspan:

Merged
Table First ColTable Second Col

code for no borders:

Merged
Table First ColTable Second Col

This tag is related to html.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值