PrepAway - Latest Free Exam Questions & Answers

How should you complete the code?

DRAG DROP
You have the following markup:

You need to add a dashed border programmatically to the div.
You write the following code.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets in
the answer area. Each code can be used once, more than once, or not at all. You may need to drag the split
bar between panes or scroll to view content.
Select and Place:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
https://www.w3schools.com/jsref/prop_style_border.asp

8 Comments on “How should you complete the code?

    1. Boniface Donfack says:

      Vinanti, space matter because it is about concatenation of class names. if you do not put space, you’ll have as className = “yellowborder” in lieu of ‘yellow border’ which means two classes




      4



      0
  1. Abu Hasan says:

    Target 3: ” border” with space at the front.

    – with space the class will be “yellow border”
    – without space the class will be “yellowborder”

    according to the question you will get dashed border if you concatenate with space ” border”




    1



    0

Leave a Reply