<u> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:u

Introduction

The u element marks text from the surrounding content with underline.

The u Element summary

Item Value
Element u
Local AttributesNone
Tag Style Start and end tag required
New in HTML5 No
Changes in HTML5 HTML5 u element has the semantic meaning

Style Convention

u {
   text-decoration:underline;
}

The style convention for the u element is similar to that for the a element.

Using the u Element

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body>
       This is a test. 
      <strong>Warning:</strong>
       This <!--from w  w w .j a v a  2  s  .c  o  m-->
      <u>is not </u>
       a test.  
   </body>
</html>

Related Tutorials