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 13

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


safaa

safaa

Target 3 : “border”

obakasan

obakasan

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

safaa

safaa

Target 2 : option.appendChild(newOption);

fbasa

fbasa

safaa is correct

puvpul

puvpul

obakasan is right Target3: ” border” with space at the front

puvpul

puvpul

fbasa and safaa is right

Vinanti

Vinanti

Target 3: “border” or ” border”
both are right. Space doesn’t matter.

Boniface Donfack

Boniface Donfack

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

Niek

Niek

Tried it in w3schools example
Target3: ” border” so classes are “yellow border”

Abu Hasan

Abu Hasan

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”

ффсцф

ффсцф

What a dumb ass give answers on that????