AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

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
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Upload Image, display, edit and delete i...
Login Form with Image background...
How to Create an Image with Transparent ...
Portfolio Gallery Website with filtering...
Simple pagination script PHP MySQLi...
Center Image in div...
Image Hover Overlay Fade...
Sticky image / element / div on scroll...
Responsive images...
Create rounded image in HTML CSS...
Add border around image...
Position Text Over an Image HTML CSS res...
Create a Slideshow Images Gallery...
Create a Sticky Sidebar...
Search bar using CSS HTML...
Shrink Navigation Menu on Scroll...
How to Create Accordion HTML Templates...
Dropdown menu in the navigation bar...
Responsive Top Navigation Bar with mobil...
Split horizontal navigation bar...