..."."/> ...".">

Home  >  Article  >  Web Front-end  >  How to remove underline from a tag in html5

How to remove underline from a tag in html5

青灯夜游
青灯夜游Original
2022-03-11 18:33:136800browse

In HTML5, you can use the style attribute to add a text-decoration style to the a tag to remove the underline. The syntax is ".. .”.

How to remove underline from a tag in html5

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

HTML a tag

HTML uses the tag to set up hypertext links (referred to as "hyperlinks"), used to link from one page to another page. The

tag is underlined by default:

How to remove underline from a tag in html5

## can be deleted by adding the

text-decoration style to the a tag Underline.

The text-decoration attribute specifies the modifications added to the text, such as underline, overline, strikethrough, etc.; when the value of this attribute is set to "none", it means that standard text is defined and no text decoration is added. .

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

Example:


a标签,默认有下划线
a标签,去掉下划线

How to remove underline from a tag in html5

[Related recommendations:

html video tutorial, web front-end]

The above is the detailed content of How to remove underline from a tag in html5. 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
Previous article:Is footer a tag of html5?Next article:Is footer a tag of html5?