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!