Underline text with CSS



Use the text-decoration property to underline text with CSS. You can try to run the following code to underline text:

<html>
   <head>
   </head>
   <body>
      <p style = "text-decoration:underline;">
         India
      </p>
   </body>
</html>
Updated on: 2020-01-31T06:06:34+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started