DOM Element
The custom element, also known as the DOM Element, is a placeholder element that you can add any HTML custom attribute, tag, or text to — thereby “creating” that element on the canvas. This is useful for adding HTML elements to the canvas that aren’t available as native Webflow elements.
Once you add the custom element to the canvas, you’re able to use the below methods, which are only available to the DOM element, as well as the more general element methods to manage children, styles, and text content.
Methods
The DOM Element supports the following specific methods:
Retrieve the HTML tag of the element.
Set the value of the specified HTML tag of the DOMElement.
Retrieve all HTML attributes for the DOMElement.
Retrieve the value of the named HTML attribute of the DOMElement.
Set the value of the specified HTML attribute of the DOMElement.
Remove the specified HTML attribute from the DOMElement.