Write an inline CSS code to set the background color for the first level heading as 'green' containing the text "My CA Exam".
Advertisements
Question
Write an inline CSS code to set the background color for the first level heading as 'green' containing the text "My CA Exam".
One Line Answer
Advertisements
Solution
<h1 style="background-color:green"> My CA Exam </h1>shaalaa.com
Cascading Style Sheets in HTML
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
The ______ property is used to set position for an element.
The float property defines the ______ of content.
State whether the following statement is True or False.
.cs is the extension of CSS file.
A CSS rule set contains ______ and ______.
CSS types are ______, ______ and ______.
Positioning types in CSS are ______.
Types of floating properties are ______, ______, ______.
Write HTML5 code with CSS as follows -
- Create ordered list with names of tourist Cities.
- Create unordered list with tourist places of those cities.
- Divide the list into two sections left and right by using CSS.
Write any two differences between the Outline and Border-style properties of CSS.
Write the equivalent CSS code to set the following styles for a web page:
- The entire page's background color should be yellow.
- Second-level Heading properties should be as follows:
- The text color should be Red.
- Left margin should be 25 px.
