![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML Tag
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
<!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>
Advertisements