Home > Article > Web Front-end > How to prompt and open hyperlink a in html
Countless information on the Internet is essentially composed of HTML documents, which are connected through links to connect the entire Internet. This is just like how bones and flesh are to the human body. Only through meridians can they be connected in series to form a complete human body. The tag seems to be the most basic, but it is a crucial and indispensable tag in HTML documents.
Countless information on the Internet is essentially composed of HTML documents one by one, and they are connected to the entire Internet through links. This is just like how bones and flesh are to the human body. Only through meridians can they be connected in series to form a complete human body.
Seems like the most basic tag, but it is a crucial and indispensable tag in HTML documents. The tag is a link between pages and acts as a bridge. This bridge also appears in various ways on the page. Different websites decorate it in different ways, but the ultimate goal is the same - to give users a more intuitive and humane interface. Link tips.
tags can be set up with different prompting methods and different opening methods in HTML documents. This article only provides a brief analysis of these two aspects. You are welcome to add more information.
Link prompting method:
1. The text is colored and underlined: This is the default link prompting method of the browser. It can clearly tell the user where to click on the link and where there is no link. . Many websites use this default link prompt method, such as Sina and Sohu. However, this link prompt method is very inappropriate when it appears on the news list page. The text in the news list page basically belongs to the title, which means that it has clickable links. Since the text on the entire page is If the link is clickable, it seems completely unnecessary to use this method to prompt the link, and the entire page is underlined, which will cause serious visual fatigue. This method appears on content pages with few links, and can effectively complete the prompt task of the link itself;
2. The text is colored but not underlined: This is the link on the news list page of many websites at present. Prompt mode. This method is very suitable for news list pages, as it removes the annoying underlines on the entire page. There are also many websites that apply this prompt method to content pages because it highlights the difference between link text and content text. However, in my opinion, this method is not as good as the previous method when applied to content pages;
3. The text has no color and no underline: This is another way of link prompt applied in the news list page. Since the text on the entire page is linkable, it seems that the text with or without color can be ignored, because it has no special meaning, except for using colored text to beautify the page. There are also some websites that apply this prompt method to content pages, such as the content page of Paopao.com. This requires moving the mouse over the link text to prompt the linkability by changing the color of the text and underlining it. The premise of using this prompt method on the content page is that the link is only a possibility for the content itself. No extras;
4. Dotted underline: This is a very special prompt method, which is basically used in pop-up advertising links in content pages.
In my opinion, the best link prompt method is: the news list page does not display underlines, and the link text on the content page displays underlines. As for whether the link text should be colored, it mainly depends on the design of the page.
How to open links:
1. Jump to the current page: This is also the default link opening method of the browser. Compared with popping up a bunch of tabs or browser windows, jumping to the current page is undoubtedly the most concise and comfortable, and naturally it has become the default opening method of the browser. However, this is not the case in practical applications. If the link is on the news list page, then it is not a big problem to jump to the current page. But if the link text is on the content page, then it is unreasonable to jump to the current page. Jumping to the current page means that the browser The current data will be discarded, but the link text on the content page is mixed in a large section of content. It is a logical link that gives relevant information about the current text. Users will naturally click to view relevant information when reading the link text. This is impossible. After reading the entire text, click on the link text to jump;
2. Pop-up page jump: This is the safest and most commonly used way to open a link. Using this opening method for link text in the content page can minimize the impact on the user's current reading behavior and provide relevant information to the maximum extent while ensuring the smoothness of the user's access to information;
3. Pop-up layer Display: This opening method is generally used for a brief explanation of the current link text, and of course is also used for the display of advertisements.
What kind of link opening method has a certain impact on users, but the greater impact comes from the unity of the link opening method. Similar link methods use a unified current page jump or pop-up page jump. , at most it only affects whether the user can use it smoothly, but if the same link is opened by jumping to the current page and jumping to the pop-up page, what it brings to the user is not whether the operation is smooth, but how the user feels confuse.
The above is the detailed content of How to prompt and open hyperlink a in html. For more information, please follow other related articles on the PHP Chinese website!