
Classes, Ids, & Color Design
Quiz by Antoinette Bradley
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
15 questions
Show answers
- Q1A style sheet class...is a classification of style rules that is applied to a single document.are all the style rules contained between the style tagallows you to create new HTML tags.allows you to create style rules that can be applied to any tag as an attribute.60s
- Q2Which of the following is used to identify and apply a style to a single element on a web page?classpropertytype selectorid60s
- Q3Which of the following is the correct way to define a class?mystyle. {color: #ff0000}.mystyle {color: #ff0000}mystyle {color: #ff0000}:mystyle {color: #ff0000}60s
- Q4IDs are used to identify and define the style for a single block and are typically only used once.TrueFalse60s
- Q5Which style sheet rule is only applied once per page?propertyidclassselector60s
- Q6#heading{background-color: #990099} is an example of what?Class DefinitionInline styleID DefinitionPseudo element60s
- Q7If you want to apply a different style to two different paragraphs on your document, which would be most appropriate?classidpropertytype selector60s
- Q8Which of the following should not be part of a properly written CSS class selector?Spaces between words in the class name.Alphanumeric characters may be used as part of the class name.A period should precede the class name.The first letter of each word in the class name should be capitalized.60s
- Q9Which of the following is the correct way to define an ID?#article1 {width: 800px}:article1 {width: 800px}.article1 {width: 800px}article1 {width: 800px}60s
- Q10What is the primary purpose of ID?To define the style of a specific single element.To protect you from the InternetTo define styles that are not limited to a specific tag.To define styles for a specific group of elements.60s
- Q11When defining an ID, the _____should precede the ID name.number sign (#)comma (,)quote (")period (.)60s
- Q12Generally container elements, such as the navigation container, header or footer containers, are only used ___________ will have their own style which is only applied to them.unlimitedoncetwicemultiples60s
- Q13Which of the following is true about classes and IDs?They can be defined on any style sheet level.You can only use one or the other, but not both.They can only be defined on the embedded or external style sheet.You can apply more than one class to an element.60s
- Q14Which is the proper way to apply a class to a <div> element?<div class="myclass">Content</div><div><class="myclass">Content</class></div><div class=".myclass">Content</div><class="myclass">Content</class>60s
- Q15What is the proper way to apply Id styles to a <div>?<id="myID">Content</id><div id="myID">Content</div><div><id="myID">Content</id></div><div id="#myID">Content</div>60s