您的位置:首页 > Web前端 > CSS

HTML&CSS Learning Notes 3

2015-09-14 17:35 711 查看
HTML

Basic III

<table></table>


By using these two tags, we can create a table for sotre data with tabular.

<tr></tr>
within
<table>
tags

tr
means table rows, one pair of tr tags can create one row of table.

<td></td>
within
<tr>
tags

td
means tabular data, one pair of td tags can create one column of table.

<thead></thead>


Like
<html>
document, it has head and body too.

<tbody></tbody>


<tbody>
tags like
<body>
tags in html document.

<th></th>
within
<thead>
tags

This pair of tags means table heading. Used for heading existing in table. Function similar to
<td>
in table body area.

colspan="[num]"
like style

This attribute is for making heading through [num] cells.

border-collapse:collapse
within style

Making the border connect together.

border:[num]px [solid/dashed] [color]


The description of border, parameters with width, style, and color.

border-[top/right/bottom/left]:


Controlling border displaying or hidding.

<div></div>


These two tags allows you to divide your page into containers (that is, different pieces). Also you can styling it.

Using
;
or not?

Between different attributes, like
style
align
colspan
, etc, there is no
;
, using space to separate each other. Within attributes, different parameters separate by using
;
.

<span></span>


Using span tags can pick the specific content which you want up and styling it.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: