Home > Common Problem > What is a hyperlink and what does it do?

What is a hyperlink and what does it do?

coldplay.xixi
Release: 2023-02-15 13:48:14
Original
22648 people have browsed it

A hyperlink is essentially part of a web page. It is an element that allows us to connect to other web pages or sites. It can be another web page or the same web page. different positions.

What is a hyperlink and what does it do?

#The operating environment of this article: Windows 7 system, Dell G3 computer.

Hyperlink

A hyperlink is essentially part of a web page. It is an element that allows us to connect to other web pages or sites. Only when various web pages are linked together can a website be truly formed. The so-called hyperlink refers to the connection relationship from a web page to a target. This target can be another web page, or a different location on the same web page, or it can be a picture, an email address, a file, or even an application. The object used for hyperlinks in a web page can be a piece of text or an image. When the viewer clicks on the linked text or image, the link target will be displayed on the browser and opened or run based on the type of target.

According to different link paths, hyperlinks in web pages are generally divided into the following three types: internal links, anchor links and external links.

According to the different objects of use, links in web pages can be divided into: text hyperlinks, image hyperlinks, E-mail links, anchor links, multimedia file links, empty links, etc.

A hyperlink is an object that implements a link in the form of specially encoded text or graphics that, if clicked, instructs the browser to move to a location within the same web page, or Open a new web page, or open a web page in a new WWW website.

Hyperlinks on web pages are generally divided into three types:

  • One is an absolute URL hyperlink. URL (Uniform Resource Locator) is a uniform resource locator. Simply put, it is the complete path of a site or web page on the Internet, such as https://www.php.cn/;

  • The second type is a relative URL hyperlink. For example, link a certain paragraph of text or a title on your own web page to other web pages on the same website;

  • There is also a hyperlink called the same web page, which requires the use of Bookmark hyperlink.

In web pages, hyperlinks on text are generally blue (of course, users can also set them to other colors), and there is an underline under the text. When you move the mouse pointer to the hyperlink, the mouse pointer will change into the shape of a hand. At this time, click with the left mouse button to jump directly to the web page or WWW website connected to the hyperlink. If the user has viewed a hyperlink, the text color of the hyperlink will change. Only hyperlinks to images do not change color when accessed.

HTML tag

  • : Create a hyperlink.

  • : Create a link that automatically sends an email.

  • : Creates an anchor point located inside the document.

Word is to create a link on that text, linking to a web page or file

If you want to learn more about programming, please stay tuned php training column!

The above is the detailed content of What is a hyperlink and what does it do?. 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