Which of the following is the correct way to set a background color of blue to an HTML element with id = "color_change"?

a.
```
document.getElementById("color_change").style.background = "blue";
```

b.
```
document.getElementById("color_change").innerHTML = "blue";
```

c.
```

```
document.getElementById("color_change").style = blue(this.id);

d.
```
document.getElementById("color_change").this.id = background("blue");
```


a.
```
document.getElementById("color_change").style.background = "blue";
```

Computer Science & Information Technology

You might also like to view...

If the new operation is unsuccessful because of a lack of heap memory, what happens?

A. The new operation returns false B. An exception is thrown C. The compiler takes over and provides memory D. The program enters an infinite loop

Computer Science & Information Technology

A __________ VPN deals with a specific single connection between two machines using VPN software or hardware.

A. host-to-site B. client/server C. site-to-site D. host-to-host    

Computer Science & Information Technology

Which of the following is the scripting language used most often with HTML forms?

A. PHP B. JavaScript C. PERL D. VBScript

Computer Science & Information Technology

The case logic structure within the decision logic structure:

a. Processes instructions in order of listing. b. Allows the computer to make a choice of two paths to follow. c. Allows the computer to repeat instructions. d. Allows the computer to make a choice of two or more paths to follow.

Computer Science & Information Technology