How to remove underline in html

藏色散人
Release: 2023-01-03 09:31:33
Original
26550 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template