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 :


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值