Home  >  Article  >  Web Front-end  >  How to remove the underline of a in css

How to remove the underline of a in css

藏色散人
藏色散人Original
2021-04-02 14:28:292920browse

How to remove the underline of a in css: first create an HTML sample file; then create a hyperlink of a; finally remove the underline of a by adding the "text-decoration: none;" attribute to the style .

How to remove the underline of a in css

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

css remove the underline of a

It’s very simple, the method is as follows:

CSS clears the default underline of a tag

<style type="text/css">
        a {                           
         text-decoration: none;
       }                            
</style>

Recommended learning: "css video tutorial"

The above is the detailed content of How to remove the underline of a in css. 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