CSS Text Decoration
CSS Tutorial » CSS Text Decoration
CSS text-decoration property specifies the decoration added to a text, and this is a shorthand property for:
text-decoration-style
text-decoration-color
text-decoration-line
We can add CSS Text Decoration as:
Internal - by using a <style> element in the <head> section
External - by using an external CSS file as style.css
Syntax:
Syntax: Internal & External CSS.
text-decoration: text-decoration-style|initial|inherit text-decoration-color text-decoration-line ;
Note: use external CSS instead.
How to create CSS Text Decoration - examples
You can try to execute the following code to change CSS Text Decoration of a text on this page.
Example:
Example 1, How to create CSS Text Decoration - examples:
<!DOCTYPE html>
<html>
<head>
<title>How to create CSS Text Decoration - examples - example</title>
<style>
h1 {
text-decoration:overline;
}
p {
text-decoration:line-through;
}
span {
text-decoration:underline;
}
.text-decor {
text-decoration:underline overline blue;
}
h2 {
text-decoration:underline overline;
}
h3 {
text-decoration:underline overline dotted red;
}
</style>
</head>
<body>
<h1>How to create CSS Text Decoration Property for h1</h1>
<p>How to create CSS Text Decoration Property for paragraph</p><br />
<span>How to create CSS Text Decoration Property for paragraph</span><br /><br />
<div style="text-decoration:underline overline red;">Ccreate CSS Text Decoration Property inline</div><br />
<div class="text-decor">Ccreate CSS Text Decoration Property for div</div><br /> <h2>Create CSS Text Decoration Property for h2</h1><br /> <h3>This is heading 3 h3</h3>
</body>
</html>
Note: Use external CSS instead.
css text decoration, underline, href, remove link underline, color, size, dashed underline, none, line through width, dashed, underline padding, bold
CSS Text Decoration - css tutorial
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.