知方号

知方号

How to remove underline from a tag

How to remove the underline of the a tag: use the text-decoration attribute and set the value of the "text-decoration" attribute in the a tag to "none"; the specific syntax format is "a {text-decoration: none ;}".

The operating environment of this article: Acer S40-51, CSS3&&HTML5&&HBuilderX.3.0.5 version, Windows10 Home Chinese version

HTML a tag

HTML uses the tag to set up hypertext links (referred to as "hyperlinks"), which are used to link from one page to another. (Related tutorials recommended: html tutorial)

The href attribute of the tag is used to specify the URL of the hyperlink target

When we move the mouse pointer to the web page When you click on a link in , the arrow changes into a little hand.

Example:

Browser default effect:

CSS text-decoration Attribute remove underline

The text-decoration attribute is used to specify the decoration added to the text, such as underline, overline, strikethrough, etc. (Learning video sharing: css video tutorial)

When the value of this attribute is set to "none", it means that standard text is defined and no text modification is added.

Using this attribute value, we can remove styles that already have underline, strikethrough, or topline.

Example:

Running effect:

More programming related knowledge, Please visit: programming video! !

The above is the detailed content of How to remove underline from a tag. For more information, please follow other related articles on the PHP Chinese website!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lizi9903@foxmail.com举报,一经查实,本站将立刻删除。