HTML CSS SQL Meta tag Generator ScrollBar design Generator Encode Decode images

CSS Basics

Introduction Syntax Selectors Attribute Selectors Specificity Combinators !important Comments Colors

CSS Need to Know

Box Model Pseudo-class Pseudo-element Inline-block Math Functions Max and Min Opacity Outline Overflow Z-index Float

Most used

Align Backgrounds Borders Text Units Padding Margins Position Tables Display Fonts Lists Height and Width

CSS Reference

CSS Properties reference CSS Pseudo-Classes reference CSS Pseudo-Elements reference CSS Selector reference

CSS text-decoration

The CSS text-decoration property is used to style the decoration of text. It can be used to add lines, such as underlines or strikethroughs, to text.

Examples

Result:

This text has an underline.

In the example above, the CSS property text-decoration: underline; is used to add an underline to the text.

Values

The text-decoration property accepts the following values:

Value Description
none No decoration is added to the text.
underline Adds an underline to the text.
overline Adds a line above the text.
line-through Adds a line through the text.

These values can be used in combination to apply multiple decorations to the text.

.ninja{
    visibility: hidden;
    color: black;
}