Workbook 2.5
Task 1
Add a model attribute with key painting
and value mona-lisa
or starry-night
.
Task 2
Use th:switch="${...}"
to compare the model attribute against two possible cases.
th:case="'starry-night'"
: displaystarry-night
from the static folder.th:case="'mona-lisa'"
: displaymona-lisa
from the static folder.
Give each image a width of 300.
Task 3
Add two <div>
elements. Each element must contain:
- an
<h1>
that displays the name of the painting. - the appropriate image element from task 2.
Test Case: starry-night
Test Case: mona-lisa
Good Luck!
Feedback Summary
5.0
4 students
5
100%
4
0%
3
0%
2
0%
1
0%
Written Reviews
There are no written reviews yet.