Answers for "to underline a text in html"

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
1

underline text html

<u>underline</u>
Posted by: Guest on August-03-2021
0

line under text html

<u> text </u>
Posted by: Guest on October-12-2020

Browse Popular Code Answers by Language