HTML Tag

HTMLWeb DevelopmentFront End Technology

The <u> element in HTML in HTML 4 was used to underlined a text on a web page, but HTML5 redefined <u> to display text different from normal text.

Let us now see an example to implement the <u> tag−

Example

 Live Demo

<!DOCTYPE html>
<html>
<body>
<h2>Shortcut Keys</h2>
<p>Use the following <u>shortcut</u> keys:</p>
<p><strong>Cut</strong>: <tt>CTRL</tt>+<tt>X</tt></p>
<p><strong>Copy</strong>: <tt>CTRL</tt>+<tt>C</tt></p>
<p><strong>Paste</strong>: <kbd>CTRL</tt>+<tt>V</tt></p>
<p><strong>Undo</strong>: <tt>CTRL</tt>+<tt>Z</tt></p>
</body>
</html>

Output

In the above example, we have used the <ul> tag to display a text other than the default normal text−

<p>Use the following <u>shortcut</u> keys:</p>
<p><strong>Cut</strong>: <tt>CTRL</tt>+<tt>X</tt></p>
raja
Updated on 30-Jul-2019 22:30:26

Advertisements