Home  >  Article  >  Web Front-end  >  How to remove underline in html

How to remove underline in html

藏色散人
藏色散人Original
2021-03-29 10:41:0526549browse

htmlMethods to remove underlines: 1. Set the default state of the a tag to remove underlines through "a{text-decoration: none;}"; 2. Use "a:visited{text-decoration: none;}" "Set the status of the a tag after access, remove the underline, etc.

How to remove underline in html

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer

HTML a tag remove underline

a{text-decoration: none;} //This is to set the default state of the a tag to remove the underline

a:visited{text-decoration: none;} //This is to set the a tag Remove the underline from the status after access

a:hover {text-decoration: none;} //This is to set the mouse overlay status of the a tag to remove the underline

a:active{text-decoration: none;} //This is to set the active state of the a tag to remove the underline

Recommended learning: "HTML Video Tutorial"

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn