<?xml version="1.0" encoding="utf-8"?>

CSS text-decoration property

CSS text-decoration property Bad Practice
CSS text-decoration property Best Practice

Decoration in CSS refers to adding a horizontal line to the text. The text-decoration property allows you to add a line under the text with the value underline, over the text (overline), or through it (line-through). You can also remove underlines from links with the following rule:

a {

text-decoration: none;

}

Top contributors

Elisa Kaijarvi

Topics

Share

Improve your UX & Product skills with interactive courses that actually work