Home >Web Front-end >HTML Tutorial >Detailed illustration of HTML hyperlinks
Hyperlink is a frequently used HTML element in the website, because various pages of the website are connected by hyperlinks, and the super link completes the between pages. jump. Hyperlinks are the main means of interaction between browsers and servers, and we will gradually learn more about them in the following technologies. Hyperlink
Hyperlink
Hyperlink is a frequently used HTML element in websites, because various pages of the website are connected by hyperlinks. Hyperlinks complete the jump between pages. Hyperlinks are the main means of interaction between browsers and servers, and we will gradually learn more about them in the following technologies.
— Note: Pictures can also be used as links, which will be studied in detail in the next chapter "Pictures in Web Pages".
4.5.1 Adding links to text
The tag of a hyperlink is . Adding a hyperlink to text is similar to other modification tags. The text after adding the link has its own special style to distinguish it from other text. The default link style is blue text with underline. A hyperlink jumps to another page. The tag has an href attribute responsible for specifying the address of the new page. The address specified by href generally uses a relative address.
— Description: In website development, document relative addresses are more commonly used.
Create a web page file in the D:\web\ directory, name it a.htm, and write the code as shown in code 4.18.
Code 4.18 Hyperlink settings: a.htm
head>
< ;title>Hyperlink settings
font size= "5">
The above is the detailed content of Detailed illustration of HTML hyperlinks. For more information, please follow other related articles on the PHP Chinese website!