<!DOCTYPE html>
<html lang="en"><!--告诉浏览器这里的代码该用什么格式(图片、视频)来编译-->
<head><!--告诉浏览器网页中的汉字该用什么字符集来编译-->
<meta charset="UTF-8">
<titile><!--title标签中的内容只能是纯文本,任何标记都会原封不动的显示-->
<center>myTest<br></center>
<!--center标签可以是它的内容居中显示在网页中-->
</title>
</head>
<body bgcolor="gray" text="black">
<!--body是网页主要内容的显示区域,几乎全部的内容都必须放在body中-->
<marquee scrollamount="20" behavior="alternote" bgcolor="yellow"><!--滚动字幕标签-->
<font size="25">
考试时间延长15分钟
</font>
</marquee>
<center><!--center会将它的内容居中输出-->
<font color="white" size="25" >
<h1>Hello World!</br></h1><!--标题,数字越大字越小-->
Welcome to China!
<hr>
<div><!--块元素,不管内容多少,总是占一行-->
System.out.println;
</div>
你好!</br>
<pre> 欢迎来 到中国!</br></pre>
<!--pre是预排版标记,会将它的内容原封不动的输出-->
你好!</br> 欢迎来 到中国!</br>
<!--注释样例-->
a<sup>2</sup>+b<sup>2</sup>=c<sup>2</sup></br>
<!--sup表示下标,sub表示上标-->
a=a<sub>1</sub>+a<sub>2</sub>
</font>
</center>
<div>
<hr>
</div>
</body>
</html>
HTML课堂讲义(1)
最新推荐文章于 2018-04-27 20:59:23 发布