Home >Web Front-end >CSS Tutorial >How to use css text-decoration attribute

How to use css text-decoration attribute

silencement
silencementOriginal
2019-05-27 15:18:113126browse

How to use css text-decoration attribute

CSS text-decoration attribute definition and usage instructions

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

Note: The modified color is set by the "color" attribute.

How to use css text-decoration attribute

Example:

Set h1, h2, h3 and h4 element text decoration

h1 {text-decoration:overline}
h2 {text-decoration:line-through}
h3 {text-decoration:underline}

Attribute value

How to use css text-decoration attribute

The above is the detailed content of How to use css text-decoration attribute. 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