Home  >  Article  >  What is the link?

What is the link?

青灯夜游
青灯夜游Original
2020-07-28 11:52:0748034browse

A link, also called a hyperlink, refers to a 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, electronic Email addresses, files, even applications.

What is the link?

Link, also called a hyperlink, is essentially part of a web page. It is a link that allows us to communicate with other web pages or sites. elements to connect between. 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 webpage to a target. This target can be another webpage, or a different location on the same webpage, or It could 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.

With hypertext, a link is an optional connection from one word, picture, or information object to another. In a multimedia environment like the World Wide Web, these objects may include sound and moving image sequences. The most common formats for links are highlighted words or pictures, which can be selected by the user (with the mouse or other means) to directly transmit and view other files. Highlighted objects are anchored. An anchor reference and the object involved form a hypertext link.

Although most links do not provide users with a choice of link type, it is still possible to provide users with a choice of connection type. For example: its example is a definition of an object, its picture, its picture Small or large pictures, etc.

Links ultimately make the World Wide Web a network.

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.

Category

Hyperlinks on web pages are generally divided into three types:

  • One type 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.

  • 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.

  • The third type is called a hyperlink to the same web page, which requires the use of a bookmark hyperlink. Generally, a # sign plus a name is used to link to a specified place on the same page.

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 hyperlink. web page or WWW website.

If the user has browsed a hyperlink, the text color of the hyperlink will change. Only hyperlinks to images do not change color when accessed.

For more related knowledge, please visit: PHP Chinese website!

The above is the detailed content of What is the link?. 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