Designer API
Control the Webflow Designer
element.getTag()
Retrieve the HTML tag of the element.
This method also works on other Webflow elements; see Get HTML tag.
1element.getTag(): Promise<null | string>
null
1// Get All Elements and find first DOM Element2const elements = await webflow.getAllElements()3const DOMElement = elements.find(element => element.type === "DOM")45if (DOMElement?.type === "DOM") {67 // Get DOM Element's Tag8 const tag = await DOMElement.getTag()9 console.log(tag)1011} else {12 console.log('No DOM Element Found')13}
Checks for authorization only