PrepAway - Latest Free Exam Questions & Answers

An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following lin

An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following line of code.

<

p id=-test-

>

test

<

/p

>

A CSS style sheet must be applied dynamically. The style must visibly change the appearance of the paragraph on the page.

You need to apply a style the paragraph.

Which line of code should you use?

A. document.getElementById(-test-).style.border = -0-;

B. document.getElementById(-test-).style.position = -static-;

C. document.getElementById (-test-).style.padding = -15px-;

D. document.getElementById(-test-).style.top = -5px-;

Explanation:

3 Comments on “An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following lin


Leave a Reply

PrepAway - Latest Free Exam Questions & Answers

An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following lin

An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following line of code.

<

p id=-test-

>

test

<

/p

>

A CSS style sheet must be applied dynamically. The style must visibly change the appearance of the paragraph on the page.

You need to apply a style to the paragraph.

Which line of code should you use?

A. document.getElementById(-test-).style.top = -5px-;

B. document.getElementById(-test-).style.border = -0-;

C. document.getElementById(-test-).style.color = -red-;

D. document.getElementById (-test-).style.position = -absolute-;

Explanation:


Leave a Reply