HTML DOM Underline Object

Underline object

The Underline object represents the HTML <u> element.

Access the Underline object

You can use getElementById() to access the <u> element:

var x = document.getElementById("myU");

Try It Yourself

Create an Underline object

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

var x = document.createElement("U");

Try It Yourself

Standard Properties and Events

Underline Object Supports StandardsPropertiesandEvents.

Related Pages

HTML Tutorial:HTML Text Formatting Elements

HTML Reference Manual:HTML <u> Tag