text-decoration

christian.dinh2481 total contributions
Published Jun 30, 2021Updated Sep 3, 2021
Contribute to Docs
To add lines on the text.
Syntax
text-decoration: <text-align-value>;
The text-decoration-value
can be the following:
none
underline
overline
line-through
Example 1
Set the p
tag to center
:
p {text-decoration: underline;}
Above code indicating that the text in p
tag will be underlined.
All contributors
- christian.dinh2481 total contributions
- Anonymous contributorAnonymous contributor3077 total contributions
- Anonymous contributorAnonymous contributor51 total contributions
- christian.dinh
- Anonymous contributor
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.