<html>
<head>
<meta charset="utf-8">
<title>基本标签</title>
</head>
<body>
<!--段落标记-->
<p></p>
<!--标题字-->
<h1>标题字</h1>
<h2>标题字</h2>
<h3>标题字</h3>
<h4>标题字</h4>
<h5>标题字</h5>
<h6>标题字</h6>
helloword
<!--涨了一只眼睛,独目标记-->
hello<br>word
<!--水平线,独目标签-->
<hr>
<!--color是一个属性,用来指定颜色-->
<!--color是属性名,yellow是属性值-->
<hr color="yellow">
<!--html当中的字符串可以是双引号,也可以是单引号-->
<hr color='yellow'>
<!--html当中的语句很松散,不严格,去掉单引号,双引号也行-->
<hr color=green>
<!--html不区分大小写-->
<HR>
<!--预留格式-->
<!--pre保留格式,在HTML源码上是什么格式,到网页上还是这个格式,不变。-->
<pre>
for(int i=0,i<100,i++){
System.out.println("i = " +i);
}
</pre>
<!--b是粗体字-->
<b>粗体字</b>
<!--i斜体字-->
<i>斜体字</i>
<!--ins是插入字-->
<ins>插入字</ins>
<!--del是删除字-->
<del>删除字</del>
<!--右上角出字-->
10<sup>2</sup>
<!--右下角出字-->
m<sub>2</sub>
<!--font字体标签-->
<!--color是字体颜色,size是字体字号大小-->
<font color="yellow" size="12">helloword</font>
<br><br><br><br>
</body>
</html>