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

6 Comments on “How should you complete the code?

  1. CasiProgramoMEXAPOWA says:

    the correct answer is
    Target 1=getElementByID
    Target 2=’yellowDiv’
    Target 3=’ border’ take care here use the space first the name of class name




    21



    0
  2. _mr says:

    Agree with majority – it is important to pick ” border” with leading space. The resulted markup would look like:

    Correct:
    class=”yellow border”

    NOT:
    class=”yellowborder”




    0



    0

Leave a Reply