一、 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

本文详细介绍了如何使用HTML的<table>、<tr>、<td>元素存储表格数据,并探讨了表格头部<thead>、<tbody>的合理布局,以及<div>和<span>元素在网页布局和样式控制中的应用。
960

被折叠的 条评论
为什么被折叠?



