Answers for "a html underline"

21

underline text in html

<!-- Using 'u' tag we can draw underline below the text in HTML -->
<p>Hello all <u>Welcome here !!!</u></p>
Posted by: Guest on June-04-2020
2

how to underline text in html

<!-- Here are two ways to underline text in HTML -->

<!--Method 1-->
<p>The deer started <u>running</u> </p> 		<!--"Running" is underlined.-->

<!--Method 2-->
.myStyle {													   	<!--CSS-->
  text-decoration: underline;
}

<p>The deer started <span style="myStyle">running</span> </p> 	<!--HTML-->
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language