现在的位置: 首页 > 综合 > 正文

第四个html网页(链接)

2018年01月14日 ⁄ 综合 ⁄ 共 331字 ⁄ 字号 评论关闭
<html>
<head>
<title>链接练习</title>
</head>
<body>
<p><a href="#heading1">转到标题1</a></p>
<p><a href="#heading2">转到标题2</a></p>
<h1 id="heading1">标题1</h1>
<p>一些文字...</p>
<h1 id="heading2">标题2</h1>
<p>一些文字...</p>
<p><a href="http://www.baidu.com">百度</a></p>
</body>
</html>

元素a代表"链接anchor";属性href代表“超文本引用(hypertext reference)”它用于指定链接指向何处--通常是一个因特网地址或者一个文件名。

抱歉!评论已关闭.