<h1 align="center"> <!--对齐方式 居中-->
<body bgcolor="yellow"> <!--背景颜色-->
<ul><li></li></ul>或有序列表<ol>><li></li></ol>或自定义<dl>><dd></dd></dl>,其中type属性是前面的符号(disc点,circle圈,square方形,'"A","a","I","i")
<table border="1"> <!--表格,border是边框宽度,cellpadding是单元格到边框距离,cellspacing是单元格之间的距离,bgcolor是背景色,background是背景图,frame是围绕表格的边框,tr是行,th是表头,td是列单元,caption是标题,colspan是跨几行,rowspan是跨几列-->
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
title 属性:鼠标移动上方显示的文字。
<hr /> <!--水平线-->
<b></b><!--粗体-->
<strong></strong> <!--强调,一般为加粗-->
<em></em><!--强调,一般为斜体-->
<i></i><!--斜体-->
<big></big><!--放大字体,HTML5 中不支持-->
<small></small><!--缩小字体,HTML5中不支持-->
<sub></sub><!--下标-->
<sup></sup><!--上标-->
<pre></pre><!--预格式文本,保留空格和换行-->
<code></code><!--源代码型的等宽风格-->
<tt></tt><!--等宽-->
<dbk></kbd><!--键盘文本-->
<samp></samp>
<var></var>
<address></address><!--地址-->
<bdo></bdo><!--文字方向-->
<del></del><!--删除线-->
<ina></ina><!--下划线-->
<link></link><!--资源引用,在head中-->
<a></a><!--如果target属性为"_blank",则在新窗口打开;如果为"_top"为跳出框架,可以自己定义target,比如内联一个iframe-->
<img>的align为文本和图片的对齐方式,bottom(默认)、middle、top、left、right,alt是默认图片替代文字;img的usemap属性指定带有可点击区域的图像,<map>标签、<area>标签,ismap属性显示坐标
<a href="#C1">第一章</a>和name属性结合,跳转到页内某处
<a href="#tips">有用的提示</a>
您也可以在其他页面中创建指向该锚的链接:
<a href="http://www.w3school.com.cn/html/html_links.asp#tips">有用的提示</a>
<a href="mailto:someone@microsoft.com?subject=Hello%20again">发送邮件</a><!--发送邮件的链接-->
<a href="mailto:someone@microsoft.com?cc=someoneelse@microsoft.com&bcc=andsomeoneelse2@microsoft.com&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!">发送邮件!</a>
<span></span><!--行内小块区域-->
<form></form><!--action属性“*.asp”,method属性"get"-->
<input></input><!--输入文本框,type属性为"text",如果为"password"则显示出密码标识,radio单选(name相同是一组,checked="checked"表示选中),checkbox多选,button按钮,summit提交和reset重置-->
<textarea></textarea><!--多行文本框,rows和cols规定长宽-->
<fieldset></fieldset><!--将标签内的分成一组,包起来,内部的legend为其定义标题-->
<frameset><frame></frame></frameset><!--框架定义,cols或rows属性将窗口分为几个,每个都是一个页面,frame属性noresize等于"noresize",则各窗口大小不会改变。不能和body标签同时使用-->
<select><optgroup><option></option></optgroup></select><!--下拉框,selected="selected"是默认选中-->
<body>标签的background属性可以为图片的URL,则图片为背景图片
<!--下面是引用外部样式表-->
<head><link rel="stylesheet" type="text/css" href="mystyle.css</head>
<!--下面是引用内部样式表-->
<head><style type="text/css">
body {background-color: red}
p {margin-left: 20px}
</style>
</head>
<!--下面是内联样式表-->
<p style="color: red; margin-left: 20px">
This is a paragraph
</p>
浙公网安备 33010602011771号