1.
2.
3.
4. <hr />标签在HTML页面中创建水平线。
5.
6. 关于标题大小与字体大小的关系?1到6号标题与1到6号字体逆序对应,比如1号字体对应6号标题,2号字体对应5号标题。
7.
8.
9.
10.
11.
12.
13.
14. 如何使用样式属性做一个没有下划线的链接。
<a href="//www.baidu.com/" style="text-decoration:none;">访问 baidu.com!</a>
15.如何使用标签链接到一个外部样式表
<link rel="stylesheet" type="text/css" href="styles.css">
16.
17.
18.
早期背景色属性(background-color)是使用 bgcolor 属性定义。
现在通常使用font-family(字体),color(颜色),和font-size(字体大小)属性来定义文本样式,而不是使用<font>标签。
文本对齐属性 text-align取代了旧标签 <center> 。
19.
20.
在HTML 4, 原来支持定义HTML元素样式的标签和属性已被弃用。这些标签将不支持新版本的HTML标签。
不建议使用的标签有: <font>, <center>, <strike>
不建议使用的属性: color 和 bgcolor.
21.
22.
23.
24.
25.
<p>点击太阳或其他行星,注意变化:</p>
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm">
<area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm">
<area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
该段代码中的shape指的是点击区域的形状,coords指的应该是链接区域在图片中的坐标(像素为单位)
26.
27.
27-1.<th>表格表头</th> 27-2.<caption>表格标题</caption> 27-3.<th colspan="2">表格跨2列</th> 27-4.<th rowspan="2">表格跨2行</th> 27-5.
27-6. 单元格边距(Cell padding) cellpadding="10" 单元格间距(Cell spacing) cellspacing="10"
27-7.
28.
29.
30. 注意: 在 HTML 4中 ul 属性已废弃,HTML5 已不支持该属性,因此我们使用 CSS 代替来定义不同类型的无序列表。
<h4>圆圈列表:</h4><ul style="list-style-type:circle">
<h4>正方形列表:</h4><ul style="list-style-type:square">
<h4>圆点列表:</h4><ul style="list-style-type:disc">