Home >Web Front-end >Front-end Q&A >How to remove horizontal lines under hyperlinks in css

How to remove horizontal lines under hyperlinks in css

藏色散人
藏色散人Original
2021-03-22 14:46:537099browse

Css method to remove horizontal lines under hyperlinks: First create an HTML sample file; then use the a tag to create a link, and add a class attribute to the a tag; finally, by adding the "text-decoration" attribute Set it to "none" to remove the horizontal line under the link.

How to remove horizontal lines under hyperlinks in css

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

First use the a tag to create a link and add the a tag A class attribute.

Then in the css tag, class the style of the hyperlink and set the text-decoration attribute to none to remove the underline of the link.

How to remove horizontal lines under hyperlinks in css

[Recommended learning: css video tutorial]

The above is the detailed content of How to remove horizontal lines under hyperlinks 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