![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 11365 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
121 Views
The HTML DOM Ol Object in HTML represents the element.Creating a elementvar olObject = document.createElement(“OL”)Here, “olObject” can have the following properties −PropertyDescriptionreversedItsets/returns whether the order of list should be descending orascending (default)startItsets/returns the value of the start attribute of an ordered listtypeItsets/returns the value of the type attribute ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
105 Views
The HTML DOM offsetWidth property returns a number corresponding to the width of an element including its padding, border and scrollbar but not its margin.Following is the syntax −Returning number valueHTMLelement.offsetWidthLet us see an example of HTML DOM offsetWidth property −Example Live Demo HTML DOM offsetHeight form ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
212 Views
The HTML DOM offsetTop property returns a number corresponding to the top position of the specified element relative to the top side of the parent element.Following is the syntax −Returning number value in pixels (px)HTMLelement.offsetTopHere, returned value corresponds to −The top position and margin of the specified elementThe top padding, ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
136 Views
The HTML DOM offsetParent property returns the referenced parent element from which child offsets are defined.Following is the syntax −Returning referenced offset parent elementHTMLelement.offsetParentLet us see an example of HTML DOM offsetParent property −Example Live Demo HTML DOM offsetParent #picForm { width:70%; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
140 Views
The HTML DOM offsetLeft property returns a number corresponding to the left position of the specified element relative to the left side of the parent element.Following is the syntax −Returning number value in pixels (px)HTMLelement.offsetLeftHere, returned value corresponds to −The left position and margin of the specified elementThe left padding, ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
71 Views
The HTML DOM offsetHeight property returns a number corresponding to the height of an element including its padding, border and scrollbar but not its margin.Following is the syntax −Returning number valueHTMLelement.offsetHeightLet us see an example of HTML DOM offsetHeight property −Example Live Demo HTML DOM offsetHeight form ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
216 Views
The HTML DOM Object Object in HTML represents the element.Creating an elementvar objectElement = document.createElement(“OBJECT”)Here, “objectElement” can have the following properties −PropertyDescriptiondataItsets/returns the URL of the resource being used by the objectelementformItreturns a reference to the enclosing form of the object elementheightItsets/returns the height of the object elementnameItsets/returns the ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
154 Views
The HTML DOM Object form property returns the reference of enclosing form for element.Following is the syntax −Returning reference to the form objectObjectElement.formLet us see an example of Object form property −Example Live Demo HTML DOM Object form form { width:70%; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
81 Views
The HTML DOM Object data property returns a string corresponding to the value of the attribute data.Following is the syntax −Returning string valueObjectElement.dataSet data property to a string valueObjectElement.data = URLStringLet us see an example of HTML DOM Object data property −Example Live Demo HTML DOM Object data ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
119 Views
The HTML DOM normalize() method removes empty Text Nodes, and joins adjacent Text Nodes from a specified node.Following is the syntax −Calling normalize()document.normalize()Let us see an example of normalize() method −Example Live Demo HTML DOM normalize() form { width:70%; margin: 0 ... Read More