1h1 {
2 text-decoration: overline;
3}
4
5h2 {
6 text-decoration: line-through;
7}
8
9h3 {
10 text-decoration: underline;
11}
12
13h4 {
14 text-decoration: underline overline;
15}
1<!-- Using 'u' tag we can draw underline below the text in HTML -->
2<p>Hello all <u>Welcome here !!!</u></p>
1<!-- Here are two ways to underline text in HTML -->
2
3<!--Method 1-->
4<p>The deer started <u>running</u> </p> <!--"Running" is underlined.-->
5
6<!--Method 2-->
7.myStyle { <!--CSS-->
8 text-decoration: underline;
9}
10
11<p>The deer started <span style="myStyle">running</span> </p> <!--HTML-->