![]() |
Definition and UsageThe Tip: Avoid using the Browser SupportGlobal AttributesThe Event AttributesThe |
Example:
HTML
<p>This is some <u>mispeled</u> text.</p>
The u element + CSS. This is some mispeled text.
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
.spelling-error {
text-decoration-line: underline;
text-decoration-style: wavy;
text-decoration-color: red;
}
</style>
</head>
<body>
<h1>The u element + CSS</h1>
<p>This is some <u class="spelling-error">mispeled</u> text.</p>
</body>
</html>
Most browsers will display the <u>
element with the following default values,
A u element is displayed like this:
Some underlined text
Change the default CSS settings to see the effect.
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
u {
text-decoration: underline;
}
</style>
</head>
<body>
<p>A u element is displayed like this:</p>
<u>Some underlined text</u>
<p>Change the default CSS settings to see the effect.</p>
</body>
</html>
html u |
How to create HTML <u> Tag | HTML Tag |
How to Use CSS to style misspelled text | HTML Tag |
How to set Default CSS Settings on HTML <u> Tag | HTML Tag |
Read Full: | HTML Tag |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded: | 3 weeks ago |
Uploaded by: | Admin |
Views: | 42 |
Reffered: https://www.w3schools.com/tags/tag_u.asp