Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
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 ?

Advertisements
