1、属性
段落标签<p></p>
换行标签<br>
水平线标签<hr>
2、图片
src是图片地址,alt属性是图片不正常显示时替代图片,title属性是鼠标悬停显示的信息。
<img src="dog.jpg" alt="小狗" title="dog" width="100px" height="100px">
3、常用文本标签
<em> 定义着重文字
<b> 定义粗体文字
<i> 定义斜体文字
<strong> 定义加重语气
<del> 定义删除字
<span> 元素没有特定含义
4、有序列表
<ol type="a"> //type类型可以换为1,A,a,i,I
<li>黄瓜</li>
<li>白菜</li>
</ol>
5、无序列表
<ul type="disc">
<li>默认实心圆</li>
</ul>
<ul type="circle">
<li>空心圆圈</li>
</ul>
<ul type="square">
<li>正方形</li>
</ul>
<ul type="none">
<li>没有任何显示</li>
</ul>
6、表单
<form action="url" method="get|post" name="myform">
<input>
<input type="submit">
</form>
表单的三种形式
<form name="input" action="url" method="get">
First name:<input type="text" name="firstname">
<br>
Password:<input type="password" name="pwd">
<input type="submit" value="登录">
</form>
7、块元素和内联元素
8、HTML5新标签
<header></header>代表头部
<nav></nav>导航
<section></section>定义文章中的节,比如章节、页眉、页脚
<aside></aside>侧边栏
<footer></footer>脚部
<article></article>代表独立的内容块