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 [पृष्ठ २७५]
