ElementsElement Types & MethodsDOM ElementsSet TagCopy pageelement.setTag(tag) Set the value of the specified HTML tag of the DOMElement. Syntax 1element.setTag(tag: string): Promise<null> Parameters tag : string - The HTML tag to set for the element Returns Promise<null> A promise that resolves to null Example 1// Get Selected Element2const selectedElement = await webflow.getSelectedElement();34if (selectedElement?.children) {56 // Create and append DOM Element7 const DOMElement = await selectedElement.append(webflow.elementPresets.DOM);8 console.log(DOMElement)910 // Set Tag11 await DOMElement?.setTag('img');12 const tag = await DOMElement.getTag()13 } Designer Ability Designer AbilityLocaleBranchWorkflowSitemodecanDesignPrimaryMainCanvasDesign