English

If you want all links and DIV elements use Verdana font, how would you write the shortest CSS code?

Advertisements
Advertisements

Question

If you want all links and DIV elements use Verdana font, how would you write the shortest CSS code?

Code Writing
Very Short Answer
Advertisements

Solution

Using selectors separated by commas, as shown below, would result in the shortest CSS code:

a, div { font-family: Verdana; }
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assisted Practice [Page 273]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 3. | Page 273
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×