Background & Foreground Color

Notes:

html bgcolor attribute :
bgcolor is the attribute of body tag used to set the background color for the web page. we can use the color name or hexadecimal value of the color.

html text attribute:
text is the attribute of body tag used to set the default text color for the web page.

Interview Questions:

1. Which is the correct HTML code for applying a background color?
a. color=”yellow”
b. bgcolor=”yellow”
c. text=”yellow”
d. background=”yellow”
Answer: b

2. What does vlink attribute in a body tag indicates?
a. visited link
b. virtual link
c. void line
d. active link
Answer: a