HTML hyperlink

 Hyperlinks can be said to be a major feature of the Internet. The English name is HyperLink. The Internet is originally connected. As long as you use simple HTML hyperlinks, you can easily link to other web pages, common hyperlinks There are web hyperlinks, e-mail hyperlinks, FTP, telnet, etc. The purpose of various hyperlinks is different, but the Internet has evolved until now, and there have been many changes, such as e-mail hyperlinks being less and less people use. Because there are too many E-Mail collection robots, and telnet was also very popular in the early years, because at that time many college students would go to the school’s BBS (electronic bulletin board system), but now the BBS usage is not as much as before (PTT Except), and you can also use software like PCman if you want to access PTT, but we still provide these examples of hyperlinks in this introduction, and we won’t write about telnet.


Grammar of various types of hyperlinks


Types of hyperlinks Hyperlink grammar Presentation results


Web page hyperlink syntax <a href="link URL">link name</a> link name


Email link syntax <a href="mailto:email mailbox">Send a letter to me</a> Send a letter to me


FTP hyperlink syntax <a href="FTP's URL">FTP name</a> FTP name


The above three are more commonly used. Please try to write it yourself. The results displayed in the last column of the form use the so-called "fake link", which is written as "a href="#"" so that the browser will automatically judge it as false Links are usually used for preview and have no real hyperlink effect.


Web page hyperlink syntax example

<a href="https://jasonchen050319.blogspot.com/" target="_blank" title="Jason SEO">Jason SEO</a>


The example presents the results as

Jason SEO


In the example, the attribute called "target" is also used as the link target, written as "target="_blank"" to open a new window. HTML hyperlinks have many different link targets, such as _self, _parent... etc. It can be used to control the opening behavior of hyperlinks. For detailed link targets, please refer to this article: HTML a href link attributes. In addition, we also use "title" in the example to display alternate text. The function is the text that will be displayed when the mouse moves over the hyperlink, because sometimes the designer will help the hyperlink to make some beautification, through the alternate text Clearly indicate the location of the hyperlink, and the alternate text must be absolutely related to the link destination.

Post a Comment

0 Comments