C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML <u> tagHTML <u> tag is used to define a span of inline text with a non-textual annotation. It rendered as an solid underlined text, but it can be changed using CSS properties. This tag was deprecated in HTML 4.0 and redefined in HTML5. In HTML5, <u> tag is used to represent the text that is stylistically different with normal text. Tips: The use of <u> tag should be ignored as it may generate confusion for a hyperlinked text.SyntaxFollowing are some specifications about the HTML <u> tag
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML u tag</title>
<style>
u {
text-decoration: red wavy underline;}
</style>
</head>
<body>
<h2>Example of u tag</h2>
<p>This tag can be useful to identifying <u>spelling mistakes </u>in an document.</p>
</body>
</html>
Output:
Attribute:
Tag-specific attributes:The <u> tag does not contain any specific attribute. Global attribute:The <u> tag supports the Global attributes in HTML. Event attribute:The <u> tag supports the Event attributes in HTML. Supporting Browsers
Next TopicHTML ul Tag
|