html中跳转的标签,html如何设置超链接?

HTML超链接可以用a标签来设置。

1、新建html文档,在body标签中添加a标签,为a标签添加“href”属性:

2、设置“href”属性的属性值为“

page.html

”,这时点击a标签会跳转到“

page.html

”页面:

3、为a标签设置“target”属性,属性值为“_blank”,这样“

page.html

”会在新标签打开,设置为“_self”则会在自身页面打开:

设置window.open 或者在a标签上设置href,或者在点击事件中设置window.location.href即可

超链接标签指的是点击它会跳到html页面内指定的位置或者打开另外一个指定的网页,有这样效果的标签我们就称为超链接标签。