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.
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!