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

How to remove underline from text in html

藏色散人
藏色散人Original
2021-02-28 10:21:5313118browse

htmlHow to remove text underlines: First create an HTML sample file; then define some text content; finally set the value of css text-decoration to "none" to remove text underlines.

How to remove underline from text in html

The operating environment of this tutorial: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

How to remove underline from text in html?

Removing underline from text is very simple.

To remove the underline style of a hyperlink, we set the value of css text-decoration to "none".

Remove the A link underline style code as follows:

a{text-decoration:none}

Recommended: "HTML Video Tutorial"

The above is the detailed content of How to remove underline from text 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