HTML CSS
Quiz by Kris Lefko
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
14 questions
Show answers
- Q1What is the purpose of CSS ID?To apply styles to multiple elementsTo define a class of elementsTo group elements togetherTo uniquely identify an element30s
- Q2How is CSS ID selector defined?Using a hash (#) symbol followed by the ID nameUsing a period (.) symbol followed by the ID nameUsing a dollar ($) symbol followed by the ID nameUsing an asterisk (*) symbol followed by the ID name30s
- Q3Which of the following is true about CSS ID?It is only used for JavaScript functionsIt can be shared between multiple elementsIt can be used to group elements togetherIt must be unique within a webpage30s
- Q4Which symbol is used to define a CSS ID selector?Hash (#) symbolDollar ($) symbolAsterisk (*) symbolPeriod (.) symbol30s
- Q5Which of the following is NOT true about CSS IDs?IDs are used to uniquely identify elementsAn ID must be unique within a webpageMultiple elements can have the same IDCSS IDs can be targeted with JavaScript30s
- Q6How is CSS ID selector different from CSS class selector?CSS ID selector is used for inline styles while CSS class selector is used for external stylesheetsCSS ID selector has higher specificity than CSS class selectorCSS ID selector targets a specific element while CSS class selector targets multiple elementsCSS ID selector can only be applied to block-level elements30s
- Q7Which CSS property is used to assign an ID to an HTML element?The 'name' propertyThe 'id' propertyThe 'class' propertyThe 'data' property30s
- Q8Which CSS property is used to set the background color of an element?colorbackground-imagebackgroundbackground-color30s
- Q9Which CSS property is used to set the text color of an element?text-stylecolortext-colorfont-color30s
- Q10Which CSS property is used to set the border color of an element?border-styleoutline-colorborder-colorborder-width30s
- Q11Which CSS property is used to set the color of a link when it is being hovered?a:focusa:hovera:activea:visited30s
- Q12Which CSS property is used to set the color of an element's text when it is being selected?::text-color::selected::highlight::selection30s
- Q13Which CSS property is used to set the color of a visited link?a:focusa:hovera:visiteda:link30s
- Q14Which CSS property is used to set the color of the outline of an element?outline-colortext-colorbackground-colorborder-color30s