ExamGecko
Question list
Search
Search

Related questions











Question 17 - AD0-E134 discussion

Report
Export

Refer to the exhibit.

The current page has three children.

What is the final rendered html output for the code snippet?

A)

B)

C)

A.
Option A
Answers
A.
Option A
B.
Option B
Answers
B.
Option B
C.
Option C
Answers
C.
Option C
Suggested answer: B

Explanation:

Option B is the final rendered html output for the code snippet. The code snippet uses the data-slylist block statement to iterate over the child pages of the current page. The data-sly-list statement assigns each child page to a variable named page and provides an index variable named i. The code snippet then uses the data-sly-test block statement to check if the index is odd or even and applies a different CSS class accordingly. The code snippet also uses the data-sly-element block statement to create an HTML element with the name specified by the elementName variable. The code snippet also uses the data-sly-attribute block statement to add an attribute with the name specified by the attrName variable and the value specified by the attrValue variable. The code snippet also uses the data-sly-resource block statement to include a resource with the path specified by the page.path variable and the resourceType specified by the resourceType variable. Reference:

https://experienceleague.adobe.com/docs/experience-manager-htl/using-htl/htl-blockstatements.html?lang=en

asked 02/10/2024
leconte maxime
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first