Which HTML tag is used to define an internal style sheet?
<style>
Which HTML attribute is used to define inline styles?
style
How can we write comments in CSS?
/* */
In a CSS file, there is a CSS rule for paragraph tags, what can p be called?
Selector
Which CSS property is used to define the text color?
color
Which type of CSS selector is used to specify a rule to bind to a particular unique element?
id selector
Which type of selector is used to specify a group of elements?
Class selector
Is the following syntax to make the background colour of all paragraph elements to yellow correct?
all p{background-color:#yellow;}
No
How can you select the elements with the class name "example" in CSS?
.example
What type of selector is used in this case?
p {line-height: 150%;}
Element selector
Which is the syntax to select all paragraph elements in a div element?
div p
Which CSS selector is used to select the elements that do not match the selectors?
:not selector
How can we add more importance to a property/value than normal?
With the !important rule
What is the correct place to refer to an external style sheet in HTML?
In the <head> section
Find the specificity of this: #id
0100
Which are the parts of the CSS box model?
Margins, borders, padding and all the content are all components of the CSS box model.
How can be called as in CSS "color:red"?
Declaration
What type of CSS is generally recommended for designing large web pages?
External CSS
Find the specificity of this: li.
0001
What type of CSS is the following code snippet?
<h1 style="color:blue;">A Blue Heading</h1>
Inline CSS
Find the specificity of this: li::first-line.
0002
Find the specificity of this: ul ol li.red
0013
Find the specificity of this: ul ol+li
0003
Which is the correct syntax to select all the <h1> elements whose parent is a <div> element?
div > h1
Do pseudo-classes help apply a style to an element when in a specific state?
Yes