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:
Explanation:
https://www.w3schools.com/jsref/prop_style_border.asp
Is this correct?? I guess the last one should be “border”
4
5
last one should be ” border”
18
1
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
Corrects answers:
getElementById
yellowDiv
‘ border’
7
0
Target 1=getElementByID
Target 2=’yellowDiv’
Target 3=’ border’
1
0
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