Search⌘ K

Element Specific Properties

Explore how to access and manipulate element-specific properties of HTML elements as JavaScript objects in the DOM. Understand how different elements like ordered lists have unique attributes and how browsers handle these properties, including default values and undefined attributes.

DOM elements are represented by JavaScript objects. When you access an element through the document tree, you can access the properties of that specific JavaScript object. Depending on what HTML element is behind the specific object, you can work with different property sets.

For example, when you work with an <ol> element, you can refer properties that ...