| Sr.No |
Method & Description |
| 1. |
title
It helps us to access and update the value stored in an element's title attribute. |
| 2. |
textContent
This property is used to access and update the text content of an HTML element and all its child elements as a single string. |
| 3. |
tagName
It gives you the name of the HTML tag in uppercase that defines an element on a webpage. |
| 4. |
style
Using this property, you can get the CSS styles that are directly set for a particular element. |
| 5. |
tabIndex
It is used to access and update the value of the tabIndex attribute for an element. |
| 6. |
scrollLeft
This property is used to access and update how far an element's content is scrolled horizontally. |
| 7. |
scrollTop
It is used to access and update how far an element's content is scrolled vertically. |
| 8. |
scrollWidth
This property gives you the total horizontal width of an element's content in pixels. |
| 9. |
scrollHeight
You can get the total vertical height of an element's content in pixels using this property. |
| 10. |
id
The id property is used for setting and retrieving the value of the element's id attribute. |
| 11. |
innerText
It allows us to retrieve or change the visible text content directly within an HTML element on a web page. |
| 12. |
isContentEditable
It is used to check if a webpage element can be edited by users directly. |
| 13. |
lang
The lang property is an attribute of an HTML element that specifies the language code. |
| 14. |
lastChild
The lastChild property returns a node that points to the last child node of a specific parent element. |
| 15. |
lastElementChild
It returns a node that holds the last child element of a parent element. |
| 16. |
namespaceURI
The namespaceURI property of an element provides the namespace URI assigned to the element. |
| 17. |
nextElementSibling
Using this property, you can get the immediate next node in the sequence of a particular element. |
| 18. |
nextSibling
It is used to access the immediate next node in sequence from the current node within the DOM tree. |
| 19. |
nodeName
This property is used to identify a node's type and name based on its content. |
| 20. |
nodeType
The nodeType Property returns an integer value representing the type of a node. |
| 21. |
nodeValue
It is used for accessing and updating the value of a node. |
| 22. |
offsetHeight
This property is used to get the complete visible height of that element on the webpage, including both its vertical padding and borders, measured in pixels. |
| 23. |
offsetLeft
It returns the pixel based measurement of the distance from the element's left boundary to its nearest positioned parent's left boundary. |
| 24. |
offsetParent
It is used to find the closest ancestor element that affects the positioning of another element. |
| 25. |
offsetWidth
The offsetWidth property of an element gives you the total visible width of that element on the webpage. |
| 26. |
outerHTML
The outerHTML property fetches the entire HTML code of an element. |
| 27. |
outerText
This property can access or update the text content of an HTML element, including all its nested text and elements. |
| 28. |
ownerDocument
It gives you the object for the document node that contains a specific element. |
| 29. |
parentElement
It allows you to access the immediate parent element of a particular element within the HTML element. |
| 30. |
parentNode
This property is used to access the immediate parent node of a particular node within the HTML element. |
| 31. |
classList
It acts as an active container that holds a collection of CSS classes assigned to an element's class attribute. |
| 32. |
childNodes
It is used to retrieve all child nodes of an element, including elements, text nodes, and comments. |
| 33. |
className
You can access or modify the value of the class attribute of an element using this property. |
| 34. |
clientTop
It is used to get the accurate element positioning and size calculation in webpage layouts. |
| 35. |
firstElementChild
It provides the first child element within a given parent element. |
| 36. |
offsetTop
Using this property, you can get the pixel-based vertical distance from the element's top edge of its nearest positioned ancestor's top edge. |
| 37. |
attributes
It returns 'NameNodeMap' containing the collection of attributes of an HTML element |
| 38. |
accesskey
This property allows you to assign a keyboard shortcut to an element on a webpage. |
| 39. |
firstChild
It helps you to access the very first child node of a given parent element in the HTML DOM. |
| 40. |
innerHTML
This property allows us to read the existing HTML content of an element and update it with new HTML content. |
| 41. |
dir
It provides access for setting and retrieving the value of dir attributes of any element in HTML. |
| 42. |
contentEditable
You can make text content inside the HTML elements editable using this property. |
| 43. |
clientWidth
It returns the width of an element, including padding but excluding margin, border, or scrollbar width. |
| 44. |
clientLeft
This property is used to get the width of an element's left border, excluding left padding or margin. |
| 45. |
clientHeight
It is used to get the inner height of an element, including padding but not margin, border, or scrollbar width. |
| 46. |
children
This property returns a collection of child elements. |
| 47. |
childElementCount
It returns the count of direct child elements of a specified element. |
| 48. |
src
This property used for elements like <img>, <script>, or <iframe> to get or set the source URL. |
| 49. |
href
This property is used for anchor <a> elements to get or set the hyperlink reference. |
| 50. |
checked
This property is used to get or set the checked state of a checkbox or radio button. |
| 51. |
disabled
This property is used to get or set the disabled state of an input element. |
| 52. |
length
It returns the number of elements in an HTMLCollection. |
| 53. |
length
This method returns the number of items in the NodeList. |
| 54. |
value
This property is used to set or get the value of an attribute. |
| 55. |
specified
It checks whether the mentioned attribute is specified or not. |
| 56. |
name
It is used get the name of the used attribute on an element. |
| 57. |
isId
This property determines whether a HTML attribute is an 'id' attribute or not. |
| 58. |
URL
It is a read-only property which returns the complete URL of the document including the protocol. |
| 59. |
title
This property is used to set or get the title of the document. |
| 60. |
strictErrorChecking
It is used to determine whether document enforce strict error checking or not. |
| 61. |
scripts
It is a read-only property used for returning all the script elements present within HTML document as a collection. |
| 62. |
links
The links is a read-only property which returns a collection of all the links corresponding to a and area elements with href attribute. |
| 63. |
lastModified
This property returns the date and time of the current document when it was last modified. |
| 64. |
inputEncoding
The inputEncoding property returns a String which represents the documents character encoding. |
| 65. |
implementation
This returns a DOMImplementation object which is associated with the current document. |
| 66. |
images
It is a read-only property used for returning all the img elements present within HTML document as a collection. |
| 67. |
head
The head property returns the HTML head element. |
| 68. |
forms
The forms is a read-only property used for returning all the form elements present within HTML document as a collection. |
| 69. |
embeds
It is a read-only property which returns all the embed elements present within HTML document as a collection. |
| 70. |
domConfig
This property is deprecated due to which will return undefined in all new browsers. |
| 71. |
documentURI
This property is used to set or return the document's location. |
| 72. |
documentMode
The documentMode property is an IE8 property which determines the rendering mode used by browser. |
| 73. |
documentElement
It returns the documentElement as an Element Object. |
| 74. |
doctype
This property returns the DTD (Document Type Declaration) that are associated with the current HTML document. |
| 75. |
designMode
It helps us to determine if the entire document is editable or not. |
| 76. |
defaultView
It is used for returning document's window object. |
| 77. |
cookie
The HTML DOM document cookie property is used for creating, reading and deleting cookies. |
| 78. |
charset
It returns the character encoding of the HTML document. |
| 79. |
applets
It is used to return a list of all the applets elements within a document but this property is now deprecated. |
| 80. |
characterSet
This property is used to get character encoding of the document. |
| 81. |
anchors
The anchors property is a read only property which lists all the "a" tag with name attribute in the document. |
| 82. |
baseURI
It is used to return the base Uniform Resource Identifier (URI) of the document. |
| 83. |
length
This method returns the number of tokens in a token list. |
| 84. |
value
This method returns the DOMTokenList serialized as a string. |
| 85. |
domain
It is used for getting the domain name of the server on which the document is currently being executed. |