English

Which one of these name and value declarations would not work?

Advertisements
Advertisements

Question

Which one of these name and value declarations would not work?

Options

  • margin:20px 00 30%;
  • margin;20px 30%:
  • margin:20px 30%;
  • margin:20px 23px 5% 30px;
MCQ
Advertisements

Solution

margin;20px 30%:

Explanation:

This declaration contains two critical syntax errors that break standard CSS rules:
  • Incorrect Property Separator: It uses a semicolon (margin;) instead of a colon (margin:) after the property name.
  • Incorrect Terminator: It ends with a colon (:) instead of a semicolon (;).
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assignment [Page 275]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assignment | Q 6. | Page 275
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×