+ 3

how to underline the text in html

27th Aug 2018, 4:25 AM
Vishesh Baghel
Vishesh Baghel - avatar
6 odpowiedzi
+ 8
enclose that text within <u>Your text goes here </u>
27th Aug 2018, 4:30 AM
code learner
code learner - avatar
+ 4
<p style="text-style: underline;">your text</p>
27th Aug 2018, 6:30 AM
Sam Pache
Sam Pache - avatar
+ 3
Text-style isn't a property. https://www.w3schools.com/cssref/default.asp The <u> tag is deprecated. https://www.w3schools.com/tags/tag_u.asp Use style="text-decoration: underline;" instead.
27th Aug 2018, 7:48 AM
Janning⭐
Janning⭐ - avatar
+ 2
CSS is better, but the original post did say HTML.
28th Aug 2018, 3:31 AM
Janning⭐
Janning⭐ - avatar
0
Use the text-decoration:underlined property to add this
3rd Oct 2018, 4:31 AM
RAHUL SINGH
RAHUL SINGH - avatar