190k views
0 votes
What style rule displays all hypertext links within a navigation list as block elements with a gray background?

A) a:link { display: block; background-color: gray; }
B) nav > a { display: block; background-color: gray; }
C) ul a { display: block; background-color: gray; }
D) .navigation a { display: block; background-color: gray; }

User Richard G
by
8.4k points

1 Answer

2 votes

Final answer:

The correct style rule is 'a:link { display: block; background-color: gray; }'.

Step-by-step explanation:

The correct style rule to display all hypertext links within a navigation list as block elements with a gray background is option A) a:link { display: block; background-color: gray; }.

User Caity
by
8.0k points