Latest web development tutorials
 

HTML DOM Underline Object


Underline Object

The Underline object represents an HTML <u> element.

Access an Underline Object

You can access a <u> element by using getElementById():

Example

var x = document.getElementById("myU");
Try it Yourself »

Create an Underline Object

You can create a <u> element by using the document.createElement() method:

Example

var x = document.createElement("U");
Try it Yourself »

Standard Properties and Events

The Underline object supports the standard properties and events.


Related Pages

HTML tutorial: HTML Text Formatting Elements

HTML reference: HTML <u> tag