What do you know about HTML and CSS? Most people get confused when it comes to differentiating between the two and them major difference is that one webpage language while the other is format for the layout of the said webpages. This trivia questions quiz is exactly what you need in order to understand the two much deeper. How about you give it a try and see how well you do!
Cyan, magenta, yellow
Violet, orange, green
Red, green, blue
Magenta, green, blue
Rate this question:
{ body:color=black; }
body:color=black;
body { color: black; }
{ body;color:black; }
Rate this question:
The parent's family
The child
The antecedent
The second outer element
Rate this question:
p { text-size:bold; }
p { font-weight:bold; }
< p style="text-size:bold;"
< p style="font-size:bold;" >
Rate this question:
#warning { }
Warning { }
.warning { }
P { }
Rate this question:
Font-size
Text-size
Font-height
Text-style
Rate this question:
*muppets
.muppets
#muppets
Muppets>
Rate this question:
To give multiple elements the same style
To give paragraphs the same style
To group together all the span tags
To have another element other than id
Rate this question:
#cats-siamese
Cats-siamese
.cats-siamese
< cats-siamese >
Rate this question:
Make the text bigger
Make the text bold
Change the text to italic
Make the text uppercase
Rate this question:
< style src=“drogon.css" href="drogon.css" >
< stylesheet >drogon.css< /stylesheet >
< link rel="stylesheet" type="text/css" href="drogon.css" >
< link src="css" type="stylesheet" a href ="drogon.style" >
Rate this question:
Fixed
Relative
Absolute
Sticky
Rate this question:
*elmo
.elmo
#elmo
Elmo>
Rate this question:
P { }
#p { }
.p { }
{ }
Rate this question:
text-transform:uppercase
You can't do that with CSS
text-transform:capitalize
Text-change: initalize
Rate this question:
border-width:10px 20px 5px 1px;
border-width:10px 1px 5px 20px;
border-width:10px 5px 20px 1px;
border-width: 5px 20px 10px 1px;
Rate this question:
a { decoration:no-underline; }
a { text-decoration:no-underline; }
a { text-decoration:none; }
a { underline:none; }
Rate this question:
Separate each selector with a comma
Separate each selector with a curly bracket
Separate each selector with a space
Separate each selector with an asterick
Rate this question:
Text-color: red;
Font-color: red;
Color: red;
Text-decoration: color(‘red’);
Rate this question:
Colorful Style Sheets
Creative Style Sheets
Computer Style Sheets
Cascading Style Sheets
Rate this question:
< script >
< style >
< css >
< stylesheet >
Rate this question:
Div + p
Div p
Div.p
.div#p
Rate this question:
IDs are designed for single elements
IDs have more specificity than classes
An element with an id can be invoked
All of the above
Rate this question:
1px
2px
3px
4px
Rate this question:
Syntax
Selector
Pseudo-class
:selection
Rate this question:
Centering
Margin: 0 auto
Text-align
Float: middle
Rate this question:
Link, Visit, Hover, Active.
Link, Mouseup, Active, Hover.
Link, Visited, Hover, Active
Visit, Link, Hover, Active
Rate this question:
True
False
Rate this question:
Left
Relative
Static
Absolute
Rate this question:
*/ I am a comment /*
< !-- I am a comment -- >
// I am a comment //
/* I am a comment */
Rate this question:
Ol span div p
Span
Div span
Div div p span
Rate this question:
When the mouse hovers over the text or the < a> tag
As long as the page is open
The cursor won't change unless you write code for it
When the mouse hovers over the div tag
Rate this question:
Element
Auto
Border-box
Padding-box
Rate this question:
.gallery + .sculpture
.gallery.sculpture
.(.gallery, .sculpture)
None of the above
Rate this question:
.aunt .nephew
.aunt + .nephew
.aunt>.nephew
.aunt.nephew
Rate this question:
My boxes will have default border styling of 1px solid grey
My boxes will grow bigger when I add padding to them
My background images will be contained in the box
Padding will not control the size of my boxes
Rate this question:
Inline styles specified by the user in the HTML
The stylesheet created by the author of the page
A default style from the server
The browser's default styles
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.