Html table notes
来源:互联网 发布:中国教育现状知乎 编辑:程序博客网 时间:2024/06/07 01:29
tables:
<table> tag:
rows <tr> each row is devided into data cells(with <td>tag). td stands for "table data", and holds the content of a data cell. A <td> can contain text, links, images, lists, forms, other tables, etc.
<table border="1">
---if you don't specify border, the table will be displayed without borders. default no border.
---Another attribute is that we use header.
table must have the header in the first line. So we need to add the header to the table. The tag is <th> just remeber.
---Also about the header: if you need the vertical headers, so you should just list the <th>and<td>. Horizontal headers, list them in another way.
---Table caption
ex:<table border="1">
<caption>student info</caption>
<...
---Ok, when you just operate an table, you must remeber the row <tr>, then the header <th>, and then the data <td>.alway!!! Of course, you can't forget to add <caption> following <table>
---We can also set the cellpadding.
Use this tag:
<table border="1" cellpadding="10">
----------------------------------------------------------
Ok, the last thing is to distinguish the <cellpadding> or <cellspacing>
One is how to use cellpadding to create more white space between the cell content and its borders.
<table> tag:
rows <tr> each row is devided into data cells(with <td>tag). td stands for "table data", and holds the content of a data cell. A <td> can contain text, links, images, lists, forms, other tables, etc.
<table border="1">
---if you don't specify border, the table will be displayed without borders. default no border.
---Another attribute is that we use header.
table must have the header in the first line. So we need to add the header to the table. The tag is <th> just remeber.
---Also about the header: if you need the vertical headers, so you should just list the <th>and<td>. Horizontal headers, list them in another way.
---Table caption
ex:<table border="1">
<caption>student info</caption>
<...
---Ok, when you just operate an table, you must remeber the row <tr>, then the header <th>, and then the data <td>.alway!!! Of course, you can't forget to add <caption> following <table>
---We can also set the cellpadding.
Use this tag:
<table border="1" cellpadding="10">
----------------------------------------------------------
Ok, the last thing is to distinguish the <cellpadding> or <cellspacing>
One is how to use cellpadding to create more white space between the cell content and its borders.
Another is how to use cellspacing to increase the distance between the cells.
As to table color, we can use another way to do it.
<colgroup>tag.
-------------------------------------------------------------------------------------
Other tags: thead, tfoot, tbody
- Html table notes
- HTML notes
- Html Notes
- HTML Learning Notes
- HTML learning notes
- html table
- HTML TABLE
- Html Table
- HTML table
- HTML table
- HTML table
- html table
- html --table
- HTML&CSS Learning Notes 1
- HTML&CSS Learning Notes 2
- HTML&CSS Learning Notes 3
- HTML&CSS Learning Notes 4
- HTML&CSS Learning Notes 5
- HTTP状态码->HTTP Status Code
- 如何加快sql查询速度
- ARM裸机开发笔记1(指令简介)
- 懂外语,不一定会交流
- TEST
- Html table notes
- void *(*func)(void *)总结
- Linux GCC常用命令
- 将内部部署网络和 Windows Azure 集成的新选项: 使用AT&T
- gcc如何获取系统头文件路径
- 学习
- 第二章 编译和链接
- js 类型检测
- Select ..for update(nowait)语句在表级别上产生RS锁,在数据行上产生行级锁(是一种X锁)