HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The Underline object represents an HTML <u> element
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");
Create an Underline Object
You can create a <u> element by using the document.createElement() method:
var x = document.createElement("U");
The Underline object supports the standard properties and events.
HTML tutorial: HTML Text Formatting Elements
HTML reference: HTML <u> tag