What is the CSS style declaration statement to cancel the underline of a hyperlink?

青灯夜游
Release: 2021-12-09 12:11:17
Original
2411 people have browsed it

The CSS style declaration statement to cancel the underline of a hyperlink is "text-decoration:none;"; where "text-decoration" is an attribute, which can specify the decoration added to the text, and "none" is the attribute value, Used to specify that no text modification will be added, and the original underline style of the hyperlink will be removed.

What is the CSS style declaration statement to cancel the underline of a hyperlink?

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

Style is the smallest syntax unit of CSS. Each style contains two parts: selector and declaration (rule), as shown in the figure below.

What is the CSS style declaration statement to cancel the underline of a hyperlink?

If you want to remove the underline of a hyperlink in CSS, you need to use the text-decoration attribute. Just set its attribute value to "none".

     
PHP中文网
Copy after login

What is the CSS style declaration statement to cancel the underline of a hyperlink?

What is the CSS style declaration statement to cancel the underline of a hyperlink?

Analysis: In the above style, the

  • selector isa, is an element selector

  • The style declaration statement is:text-decoration: none;, which specifies that the text must be unmodified.

    • The text-decoration attribute specifies the decorations added to the text.

    • none Default. Text that defines the standard.

(Learning video sharing:css video tutorial)

The above is the detailed content of What is the CSS style declaration statement to cancel the underline of a hyperlink?. 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
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!