Underline tag in HTML

HTML galaxy

Underline tag used for text decoration. 

  • Underlined text is commonly used to pay attention to text.
It is represented using <u>....</u>

Comparison between normal text and underlined text:

Normal text underlined text
Inida India
USA USA
UK UK

Code:

<!DOCTYPE html>
<html>
<head>
      <title>underline</title>
</head>
<body>
       <u>India</u>
       <u>USA</u>
       <u>UK</u>
</body>
</html>


Output:

India USA UK

Underline tag is a inline elements. 

Post a Comment

Post a Comment (0)

Previous Post Next Post