हिंदी

How do you define a CSS style rule?

Advertisements
Advertisements

प्रश्न

How do you define a CSS style rule?

कोड लेखन
परिभाषा
Advertisements

उत्तर

By writing the selector tag without angle brackets, we define a rule. The following syntax is used to write the properties and their values:

selector { propertyname : value ; propertyname : value ; ...}

For example, we define the style rule as follows if we want the <H3 tag to have the font face Arial and color red:

h3 { font.family : Arial ; color : red ; }
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Cascading Style Sheets (CSS) - Assignment [पृष्ठ २७५]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
अध्याय 6 Cascading Style Sheets (CSS)
Assignment | Q 14. (ii) | पृष्ठ २७५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×