How to jump to herf in html

coldplay.xixi
Release: 2023-01-03 09:25:46
Original
5789 people have browsed it

Herf’s method of jumping in HTML: 1. Internal link, the code is [<a href="#/URL">name</a>]; 2. External link, the code is [ <a href="URL">name</a>].

How to jump to herf in html

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer. This method is suitable for all brands of computers.

Herf jump method in html:

##herfIn html, the tag means A hyperlink.

1. For general jump pages, the page that needs to be jumped is to set the address to be jumped in the href attribute.

2. When used as a button, it can be clicked, but does not jump to the page but does other processing. You need to set the href attribute to javascript:

How to jump to herf in html

##Extended information:

Usage classification

1. Internal connection

<a href="#/URL">name</a>
Copy after login

2. Anchor

<a name="object-name">name</a><a href="#object-name">name</a>
Copy after login

3.External link

<a href="URL">name</a>
Copy after login

Create a URL link with name as the representation.

4. Link description text

<a href="/" title="链接说明">链接说明</a>
Copy after login

5. Special effect link

The purpose of the special effect link is not to jump to other locations, but to achieve basic page special effects. This kind of link Requires script support.

Related learning recommendations:

html tutorial

The above is the detailed content of How to jump to herf in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template