Write a short note on rule of CSS.
Advertisements
Question
Write a short note on rule of CSS.
Short/Brief Note
Advertisements
Solution
- CSS style declaration consists of two major parts; Selector and Declaration.
- The Selector refers an HTML tag in which you want to apply styles.
- The Declaration is a block of code contains style definition. It should be surrounded by curly braces.
- We can include any number of properties for each selector, and they must be separated by semicolons.
- The property name and its value should be separated by a colon.
- Each declaration should be terminated by a semicolon (;).
shaalaa.com
Introduction to CSS
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Expansion of CSS ______.
CSS is also called as ______.
What is selector?
The declaration should be terminated by
What is the property to set text as bold?
Which of the following indicates that the text included is a comment?
Write the general format of linking CSS with HTML.
What is Inline Style?
Write a CSS file to define text color and alignment to <p> tag.
List and explain the Font and text element properties and values used CSS.
