HTML&CSS 【三】-- TABLES, DIVS, AND SPANS

来源:互联网 发布:知乎西南财大打人事件 编辑:程序博客网 时间:2024/05/21 05:38

一、 TABLES

use them to store tabular data<table></table>
  • rows
<tr></tr>
  • table data
<td></td>            <tr>                <td>One</td>            </tr>            <tr>                <td>Two</td>            </tr>            <tr>                <td>Three</td>            </tr>

这里写图片描述

这里写图片描述

  • Head of table
<thead><tbody>The original <tr>s should be within <tbody> now. <tbody> should be within <table>.

这里写图片描述

  • title of table
colspan attribute

这里写图片描述

这里写图片描述
这里写图片描述

  • division
<div>  create visual HTML objects like sidebars, menus, and more.Just like with images, you can make <div>s clickable by wrapping them in <a></a> tags.

这里写图片描述

  • span
<span> allows you to control styling for smaller parts of your page, such as text. For example, if you always want the first word of your paragraphs to be red, you can wrap each first word in <span></span> tags and make them red using CSS!color, font size, font family, and any other style attribute you can think of
0 0
原创粉丝点击