WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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():

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

Create an Underline Object

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

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