HTML基础:我的第一个网页(1)
文件名:1-1.html
<html> <head> <title>static page</title> </head> <body> <h1>this is static page!</h1> <h2>you can browser,but not interactive.</h2> </body> </html>
文件名:1-2.html
其中meta标签中的http-equiv属性相当于http文件头,向浏览器传输一些有用的信息,格式是:
meta http-equiv="参数" content="参数变量值",具体这个例子中的Content-Type表示内容的类型,content表示内容是文本html,字符集是GBK。
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<title>Hello,Welcome to use html!</title>
</head>
<body>
<p>
<h1>this is my first html page,i like html,you can click here.
<h2>
<a href="1-1.html">
browser the static page,search your interesting things.
</a>
</p>
</body>
</html>
效果是 点击超链接,会自动跳转到1-1.html :

浙公网安备 33010602011771号