May 06, 2021 CSS Reference Manual
Set up h1, h2, h3 and h4 element text decoration:
The text-decoration property specifies the decoration added to the text.
Note: The decorated color is set by the "color" property.
Default: | none |
---|---|
Inherited: | no |
Version: | CSS1 |
JavaScript syntax: | object .style.textDecoration="overline" |
The numbers in the table support the first browser version number of the property.
Attributes | |||||
---|---|---|---|---|---|
text-decoration | 1.0 | 3.0 | 1.0 | 1.0 | 3.5 |
Value | Describe |
---|---|
none | Default. Define the text of the standard. |
underline | Defines a line under the text. |
overline | Define a line on the text. |
line-through | Define a line that crosses under the text. |
blink | Define the text that flashes. |
inherit | Specifies that the value of the text-model property should be inherited from the parent element. |
CSS tutorial: CSS text