• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / HTML / Tags / HTML U Tag-Underline Text

HTML U Tag-Underline Text

August 8, 2013 by techhoneyadmin

HTML U TagHTML Underline text can be done using the HTML U tag, but the semantics of U HTML Tag have changed a lot in HTML 5.

U tag was earlier used for showing underlined text but was then deprecated in HTML 4.01.

U tag was again introduced in HTML 5 with a very different semantic of defining text which can be different from normal text e.g. incorrectly spelled words.

Even though U Tag has been introduced again, still most of the browsers will use the HTML U Tag to display the text wrapped in it as underlined text.


HTML U Tag Syntax

<u>
Some text here
</u>

HTML U Tag Example

HTML U Tag Code Output
This is a normal text
&lt;span style=&quot;text-decoration: underline;&quot;&gt; This text is in U Tag &lt;/span&gt;
This is a normal text
This text is in U Tag

Here in the example above we can see that even though the semantics of HTML U tag have changed in HTML 5, still the browser is using the HTML U Tag to show HTML underline text.

HTML U Tag supports all HTML Global Attributes and HTML Event Attributes


HTML U Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Filed Under: Tags Tagged With: How to use html u tag, Html code for underline text, Html code to underline text, HTML tag u, Html text decoration underline, Html text underline, Html u, HTML U tag, Html u tag code, Html u tag example, Html u tag syntax, Html underline text, Tag html u, Tag u html, Text underline html, U html, U html tag, U tag html, Underline html text, Underline text html, Underline text in html

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in