text decoration in css code example
Example 1: text-decoration css
h1 {
text-decoration: overline;
}
h2 {
text-decoration: line-through;
}
h3 {
text-decoration: underline;
}
h4 {
text-decoration: underline overline;
}
Example 2: line through in css
x {
text-decoration: line-through;
}
Example 3: text transform in css
<p >Initial String
<h2>Lorem ipsum dolor sit amet</h2>
</p>
<div class="heading">
This will be capitalize
</div>
.heading {
text-transform: capitalize;
}
text-transform: none;
text-transform: capitalize;
text-transform: uppercase;
text-transform: lowercase;
text-transform: full-width;
text-transform: full-size-kan
Example 4: how to underline text in css
text-decoration: underline;
Example 5: css text strike
h2 {
text-decoration: line-through;
}
Example 6: underline text using css
<style>
p {
text-decoration: underline;
}
</style>
<p>Hello all Welcome here !!!</p>