Set HTML tag
element.setTag(tag)
Set the HTML tag of an element.
For example, you can change a Webflow list element to use the <ul> or <ol> HTML tags.
The valid tag values depend on the element type.
Webflow List, Div Block, and Heading elements are supported.
Syntax
You can also use this method to set the CMS binding of a Heading element:
Parameters
The valid values for tag depend on the element type:
Returns
Promise<null>
A Promise that resolves when the tag has changed.
Example
Designer Ability
Checks for authorization only