Home  >  Article  >  Web Front-end  >  What is a hyperlink?

What is a hyperlink?

藏色散人
藏色散人Original
2019-05-06 15:26:5650778browse

What is a hyperlink?

What is a 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. The target can be another web page, a different location on the same web page, or a picture or 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.

A simple example: If you encounter a word you don’t understand when reading an article, just click on the word and its detailed description will appear. After reading, click Click the back button to continue reading. The method to achieve this function is called a hyperlink. Such links can be text, other documents, sounds, pictures, digital movies, etc.

Hyperlink characteristics:

Hyperlinks are one of the important features that distinguish Web pages from other media. Web viewers only need to click on a hyperlink in the webpage. Automatically jump to the target object of the hyperlink, and the number of hyperlinks is unlimited. The carrier of a hyperlink can be text or an image. A text hyperlink is a word or phrase that is assigned a target URL. A picture hyperlink is a default hyperlink assigned to the entire picture. You can also assign one or more hotspots to the picture, that is, divide multiple areas in the picture to assign hyperlinks.

A complete hyperlink consists of two parts, namely the link carrier and the link target address. The carrier of the link refers to the part that displays the link, that is, the text or image containing the hyperlink. The target of the link refers to the content displayed after clicking the hyperlink, which may be to open another web page, enter another website, or open an e-mail, etc. Therefore, before creating a hyperlink, you must first determine the carrier of the link and the target address of the link.

The above is the detailed content of What is a hyperlink?. 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
Previous article:What is flex?Next article:What is flex?