Skip to content

CSS Text Decoration

How to use the CSS text-decoration property to add or remove underlines, overlines, line-through, and other text decorations for links and headings.

Text Decoration

The text-decoration property is used to set or remove decorations from text.

The value text-decoration: none; is often used to remove underlines from links:

a {  
	text-decoration:  none;  
}

Example text decoration none

The other text-decoration values are used to decorate text:

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

Example text decoration values

Navigation