Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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-->
 
PREVIOUS NEXT
Tagged: #underline #text #html
ADD COMMENT
Topic
Name
3+1 =