HTML DOM small object

The HTML DOM small object is associated with HTML element. We can create and access small element using the createElement() and getElementById() method respectively.

Syntax

Following is the syntax for ?

Creating a small object ?

var s= document.createElement("SMALL");

Example

Let us look at an example for the small object ?



Small object example

Create a small element containing some text by clicking the below button

This is normal text

Output

This will produce the following output ?

On clicking the CREATE button ?

Updated on: 2019-08-19T12:45:56+05:30

189 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements