मराठी

Which is the correct CSS syntax?

Advertisements
Advertisements

प्रश्न

Which is the correct CSS syntax?

पर्याय

  • {p:color=black(p}
  • p {color: black;}
  • {p;color:black}
  • p:color=black
MCQ
Advertisements

उत्तर

p {color: black;}

Explanation:

A proper CSS rule is split into distinct anatomical parts:
  • Selector (p): Targets the specific HTML element to style.
  • Declaration Block ({ ... }): Encloses all style rules for that selector.
  • Property (color): Specifies the visual trait you want to alter.
  • Separator (:): Placed between the property and its value.
  • Value (black): Defines the settings applied to the property.
  • Terminator (;): Closes out that specific line of code.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Cascading Style Sheets (CSS) - Assisted Practice [पृष्ठ २७१]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×