Adobe Experience Manager Tutorial Blog: This blog helps people to learn about new AEM Features
data-sly-element replaces the element name of the host element.
data-sly-element
<h6 data-sly-element="${headerLevel}">Title Text</h6>
This replaces h6 with the value of headerLevel. If headerLevel returns h1, the element is rendered as <h1>.
h6
headerLevel
h1
<h1>
Back to the HTL tutorial index