LU05.A04 - v-bind with css-class

Prerequisites

Learning Objectives

1. Be able to use media elements such as photos using v-bind scr. 2. Interaction of the three areas in a SFC (single file component). 3. Be able to make small code adjustments to an existing Vue script

Source

Assignment

You will find at the W3School webseite a small script in which some photographs are being displayed. In this script we would like to make some changes as follows:

  1. Create a new directory media and save at least three photos of your choice in it.
  2. Adjust the code to display this three photos.
  3. Create withing the style area a second CSS class #app2 with new values of your choice for the photo frame.
  4. Activate the css amendments by adjusting the template-code (div-element).
  5. Save your result either on your pc or in the W3Schools workspace (requires a W3Schoo profile).

Solution

Lösung

Vocabulary

English German
within innerhalb
amendments Ergänzung, Nachtrag
either … or entweder … oder
to require benötigen

Volkan Demir