मराठी

What is wrong with the following CSS definition? body (color = "black"; )

Advertisements
Advertisements

प्रश्न

What is wrong with the following CSS definition?

body (color = "black"; )
कोड लेखन
अति संक्षिप्त उत्तर
Advertisements

उत्तर

Parentheses (instead of curly braces) and the equal sign (instead of a colon) are not allowed in CSS rules. The proper code looks like this:

body { color: "black"; }
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Cascading Style Sheets (CSS) - Assisted Practice [पृष्ठ २७३]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
पाठ 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 1. | पृष्ठ २७३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×