<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale-1.0,maximum-scale=1.0.minimum-scale=1.0,user-scalable=no"/>
<style type="text/css">
h1 {color: red}
p {color: blue}
a {color: red}
</style>
</head>
<body>
<h1 align="center">Heading 1</h1>
<p>My 1 paragraph.</p>
<h2>Heading 2</h2>
<p>My 2 paragraph.</p>
<p> </p>
<hr/>
<!---这是一段注释。注释不会在浏览器中显示--->
<hr/>
<a href="http://blog.csdn.net/raoxudong">This is a link <br/>to my CSDN </a>
<br/>
<p> </p>
<img src="http://www.shisc.net/ghapp/uploads/2014/07/26/a02c3507e16042c5a4b97b2d09cb0265.jpg" width="200" height="100"/>
</body>
</html>
<html>:定义 HTML 文档。
<body>:定义文档的主体。
<h1>to<h6>:定义 HTML 标题
<hr>:定义水平线。
<!-->:定义注释。
<p>:定义段落。
<br/>:插入单个折行(换行)。
<head>:样式信息,对 HTML 进行格式化。
文本格式化标签
标签 | 描述 |
---|---|