What is hypertext?
The true power of markup languages lies in their ability to collect, which can combine the collected documents into a complete information library and link the document library to other document collections around the world.
In this way, readers can not only completely control the display of the document on the screen, but also control the order of browsing information through hyperlinks. This is the 'HT' in HTML and XHTML - hypertext, which connects the entire Web network.
Basic knowledge of hypertext
The basic feature of hypertext is the ability to link documents; you can point to other locations, which can be within the current document, other documents in the local area network, or any document at any location on the Internet. These documents form a chaotic web of information. The target document is usually associated with the source document, and enriches it; the link elements in the source document pass this relationship on to the browser.
Hyperlinks can be used for various effects. They can be used in tables of contents and lists of topics. Browsers can click the mouse on the browser screen or press keys on the keyboard to select and automatically jump to the topic they are interested in within the document, or jump to a document in a completely different collection somewhere in the world.
Hyperlinks can also point browsers to more information about a specific topic within a document. For example, 'If you want more detailed information, please refer to the page of某某.' Authors can use hyperlinks to reduce redundant information. For example, we suggest that creators sign their names in each document. This way, a hyperlink that links a name to another document containing address, phone number, and other information can be used, without the need to include complete contact information in each document.
Hyperlink (hyper text), or as it is commonly calledAnchor(anchor), marked by the <a> tag, can be represented in two ways. One type of anchor creates a hotspot in the document, which, when activated or selected (usually with the mouse), causes the browser to perform a link. The browser will automatically load and display a part of the same document or another document, or trigger certain operations related to Internet services, such as sending emails or downloading special files, etc. The other type of anchor creates a mark in the document that can be referenced by hyperlinks.
There are also mouse-related events associated with hyperlinks. When combined with JavaScript, these events can produce some exciting effects.
Comments
Both types of anchors use the same tag; this may be the reason why they have the same name. However, we find that if we differentiate them, treating anchors that provide hotspots and hyperlinks as 'links' and those used to mark the target parts of the document as 'anchors', it will be easier to understand these two types of anchors.