name]; 2. External link, the code is [ name]."/> name]; 2. External link, the code is [ name].">

Home  >  Article  >  Web Front-end  >  How to jump to herf in html

How to jump to herf in html

coldplay.xixi
coldplay.xixiOriginal
2021-02-26 15:58:595767browse

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>

2. Anchor

<a name="object-name">name</a><a href="#object-name">name</a>

3.External link

<a href="URL">name</a>

Create a URL link with name as the representation.

4. Link description text

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

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!

Statement:
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