一 : HTML
html总结:
超文本标记语言
学习标签: 标签的作用 特点 属性 属性值
常用标签
连接标签 : a 超链接 锚链接 href title target
图像标签 : img
基础标签 : body head title p div h* span hr br
格式化标签 : address b u i del em strong sup sub …
列表标签 : ul ol li
表格标签 : table tr td|th
表单标签 : from input type : text password radio checkbox file hidden button submit reset textarea fieldset->legend select button label
格式化标签
b 加粗 ;
u 下划线
i 斜体
del 删除线
strong 强调 显示为加粗
sup 上标; sub 下标
address 语义化标签 显示为斜体 同常用来定义地址… 块元素
hr 水平线
br 换行
pre 预处理标签 保留文本编写格式
正常文本
<b>我是b标签</b>
<u>我是u标签</u>
<i>我是i标签</i>
<del>我是del标签</del>
<strong>我是strong标签</strong>
<sup>我是sup标签</sup>
<sub>我是sub标签</sub>
<address>我是address标签</address>
<hr>
<p>
锄禾日当午<br>
汗滴禾下土<br>
一本小破书<br>
一坐一上午<br>
</p>
<pre>
锄禾日当午
汗滴禾下土
一本小破书
一坐一上午
</pre>
</body>
列表标签:
ul 无序列表
li 定义列表项
列表项标记 : 在 ul标签上添加type属性 : desc实心原点(默认) circle 空心圆圈 square 实心方块
ol 有序列表
在ol列表上使用type属性: 1 A a I i
注意: 在ul,ol列表的直接子元素只能为li标签,而li标签中可以嵌套任意元素
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>列表</title>
</head>
<body>
<h3>我爱吃的水果:</h3>
<ul type="square">
<li>车厘子</li>
<li>草莓</li>
<li>提子</li>
</ul>
<h3>我不喜欢吃的食物:</h3>
<ol type="i">
<li>香菜</li>
<li>鱼腥草</li>
<li