Which of the following is NOT a valid CSS property?*2 pointsfont-sizebackground-colortext-colormargin-top
Question
Which of the following is NOT a valid CSS property?
2 points
font-size
background-color
text-color
margin-top
Solution
All of the options provided are valid CSS properties. These include:
-
font-size: This property is used to specify the size of the font. Values can be specified in length units or as a relative size.
-
background-color: This property sets the background color of an element. It can take color names, hex color codes, RGB, RGBA, HSL, HSLA values.
-
text-color: This is not a valid CSS property. The correct property to set the color of the text is 'color'.
-
margin-top: This property sets the top margin of an element. It can take values in length units, percentages, or the keyword 'auto'.
So, the answer is 'text-color' as it is not a valid CSS property.
Similar Questions
Question 7In the following CSS code, what is the color: part known as?123h1 { color: purple;} 1 pointCSS PropertyCSS RuleCSS SelectorCSS Attribute
Which CSS property is used to set the background color of an element?Optionscolor-backgroundbackground-colorbg colorbg-color
Is following CSS syntax valid?body { color: #FF0000;}* { font-size: 14px;}
Is following CSS syntax valid?body { color: #FF0000;}h3,div.full_textdiv.small_text h4div.filters p.title { font-size: 20px;}
In the following code, is the text Best School red?css:h1.title { color: red;}html:<h1>Best School</h1>
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.