Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the commonly used underscore style in HTML

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "what is the commonly used underlining style in HTML", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the commonly used underlining style in HTML" article.

1. The method of underlining in calligraphy

You can underline the calligraphy with a u tag by using the tag in html. The example pattern is shown below.

But when you pay attention to the u tag, which begins and ends, I am underlined.

2. Underline the hyperlink in calligraphy-a detailed introduction to css hyperlink

We often let the text with hyperlinks be displayed by underlining, while the mouse is put up and underlined without showing the calligraphy with links, and then we underline the hyperlinks through css.

Using the code text-decoration, you can go to the css manual to view a detailed introduction to text-decoration

Syntax:

Text-decoration: none | | underline | | blink | | overline | | line-through

Text-decoration parameters:

None: no decoration

Blink: flashing

Underline: underline

Line-through: through line

Overline: underline

Example

Following the illustration, we can see that "div css" is involved in the css link, and at the same time, the equipment is equipped with the css attribute an is underlined (a {text-decoration:underline;}), but the mouse up (a:hover {text-decoration:none;}) underline is removed.

3. Underline the hyperlink text when the mouse is lowered.

According to the second point (2, the hyperlink pen and ink underline) through the css to let the hyperlink pen and ink underline, the mouse is put down to remove the underline, the third point is exactly opposite to the second point, the hyperlink naturally does not appear underlined a {text-decoration:none;}, while the mouse is put up with an underlined a:hover {text-decoration:underline;}.

4. There is an underline-object underline when the mouse is placed in a certain area

This is widely used by us, and we roughly configure its div in a class format (id and class authentication) such as: .ys: hover {text-decoration:underline; cursor:pointer;}, explaining that cursor is the mouse tag (cursor introduction) and pointer is the finger content disclosure performance.

Html source code, page source file

By setting the css style for "ys" in this way, it will be underlined in the browser when the mouse is placed on the calligraphy, but here it is not because there is a hyperlink that there is an underline to communicate with the hyperlink.

The above is about the content of this article on "what is the common underlining style of HTML". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report