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:

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:

Answer:

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



Leave a Reply 7

Your email address will not be published. Required fields are marked *


akhila

akhila

Is this correct?? I guess the last one should be “border”

san

san

last one should be ” border”

san

san

Target2: option.appendChild(newOption);

CasiProgramoMEXAPOWA

CasiProgramoMEXAPOWA

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

CasiProgramoMEXAPOWA

CasiProgramoMEXAPOWA

target 1: var newOption=document.createElement(‘option’);
target 2: option.appendChild(newOption);

KT

KT

Corrects answers:
getElementById
yellowDiv
‘ border’

S

S

option.appendChild(newOption);