How to remove underline from a tag

青灯夜游
Release: 2021-01-28 09:19:06
Original
45474 people have browsed it

How to remove the underline of the a tag: use the text-decoration attribute and set the value of the "text-decoration" attribute in the a tag to "none"; the specific syntax format is "a {text-decoration: none ;}".

The operating environment of this article: Acer S40-51, CSS3&&HTML5&&HBuilderX.3.0.5 version, Windows10 Home Chinese version

HTML a tag

HTML uses the tag to set up hypertext links (referred to as "hyperlinks"), which are used to link from one page to another. (Related tutorials recommended: html tutorial)

The href attribute of the tag is used to specify the URL of the hyperlink target

When we move the mouse pointer to the web page When you click on a link in , the arrow changes into a little hand.

Example:

How to remove underline from a tag

Browser default effect:

How to remove underline from a tag

CSS text-decoration Attribute remove underline

The text-decoration attribute is used to specify the decoration added to the text, such as underline, overline, strikethrough, etc. (Learning video sharing: css video tutorial)

When the value of this attribute is set to "none", it means that standard text is defined and no text modification is added.

Using this attribute value, we can remove styles that already have underline, strikethrough, or topline.

Example:

How to remove underline from a tag

Running effect:

How to remove underline from a tag

More programming related knowledge, Please visit: programming video! !

The above is the detailed content of How to remove underline from a tag. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!