Advertisements
Advertisements
Question
Write down general format of CSS declaration.
Answer in Brief
Solution
CSS declaration- General format:
Selector Declaration
HTML Tag { Properties : Values; >
Example:
Selector Declaration { properties : Values; }
P {
Font-size : 16pt;
color : red;
font-weight : bold;
}
shaalaa.com
Introduction to CSS
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Expansion of CSS ______.
What is selector?
What is the property to set text as bold?
Which of the following ways below is correct to write a CSS?
What is CSS?
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.
Write a CSS file to define font type, style and size to <h1> tag.
List and explain the Font and text element properties and values used CSS.