使用utf-8:<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
拆行:<br />
标题:<h> </h>
<hi>题目i </hi>
段落:<p> </p>
链接:<a href="http://www.baidu.com">
This is a link </a>
插入水平线:<hr />
图像:<img src="/i/eg_w3school.gif" width="300" height="120" />
注释:<!--这是一段注释-->
Html属性实例
背景颜色:<body bgcolor="yellow">
标题居中排列:<h1 align="center">题目</h1>
表格:<table>定义html表格
<table border="1"> 拥有关于表格边框的附加信息
带有指定快捷键的超链接:acceskey属性
<a href="http://www.baidu.com" accesskey="h">百度一下</a><br/>
<a href="http://www.w3school.com.cn/css" accesskey="c">CSS教程</a>
class属性:<element class="value">
<head> <style type="text/css"> h1.intro{color:blue;} p.important{color:red;} </style> </head> <body> <h1 class="intro">Header 1</h1> <p>A paragraph.</p> <p class="important">请注意这个重要的段落。:)</p>
注:html对大小写不敏感