Font size
WorksheetsStyling with CSS Quiz Review
Total questions: 66
Worksheet time: 37mins
What does CSS stand for?
Colorful Style Sheets
Creative Style Sheets
Cascading Style Sheets
Computer Style Sheets
What is the correct HTML for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
<style src="mystyle.css">
Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section
In the <body> section
At the end of the document
In the <css> section
Which HTML tag is used to define an internal style sheet?
<style>
<css>
<script>
<body>
Which HTML attribute is used to define inline styles?
style
styles
font
class
Which is the correct CSS syntax?
body:color=black;
{body;color:black;}
body {color: black;}
{body:color=black;}
How do you insert a comment in a CSS file?
/* this is a comment
<* this is a comment *>
<! this is a comment >
/* this is a comment */
What type of styles are easy to interpret because they are applied directly to the elements they affect?
CSS
Inline
Internal
External
Which of the following is a goal of style sheets?
To make it easy to code
To mix the development of the style with the content
To separate the development of the style with the content
So you'll learn more than one coding language
Which form of CSS breaks style specifications into individual modules?
CSS 1.0
CSS 2.0
CSS 2.1
CSS 3.0
What is the name of a text file that contains style declarations?
HTML file
Internal style sheet
External style sheet
Inline style sheet
Why would you want to create alternate style sheets?
To benefit individuals with disabilities
To allow you to change your style at a moment's notice
To alternate styles frequently
To apply to different pages in the site
When does style inheritance occur?
When you have one or more conflicting styles
When you have no conflict of styles
When your style sheet is incorrect
When you don't like the original style
Which of the following values would precisely describe a color?
Aqua
0033ff
Aquamarine
color: gray
What are RGB values based on?
Red, Gold and Brown lights
Red, Gold and Blue lights
Red, White and Blue lights
Red, Green and Blue lights
What is the default font that web browsers typically use?
Arial
Times New Roman
Verdana
Calibri
The HTML tag for an image is
<img>
<a>
<h1>
<p>
What are the two attributes which must always be included in <img>
href and lang
src and alt
style and id
id and class
Of the following, which is NOT web safe for an image format
png
jpg
gif
bmp
2.Supports transparency
3.Uses lossless compression
4.Supports 256 colors
2.Uses lossless compression
3.Supports several different color depths; including 256 colors and 16 million colors
4. Commonly used for online viewing of images
What is the correct way to create a CSS file?
css.styles
styles.css
style.ccs
stylesheet.scss
Style rules are added in a separate document with what extension?
.html
.htm
.css
.css3
What type of program do you use to create a style sheet?
text editor
web builder
css editor
word processing
Where are inline styles typed?
In the external style sheet
Inside the <style> tag
Inside the <head> tag
In the body, inside the element tag
How many parts are in a CSS rule?
2
3
4
5
The selector rule includes the ________, such as p or h2.
Who
What
How
Where
The property rule includes the _________, such as the font color.
Who
What
How
How much
The value rule includes the _______, such as 14px.
Why
What
How
How much
Number of selectors used when creating internal and external CSS.
2
3
4
5
What type of language is CSS?
color-based
style-based
code-based
text-based
Hexadecimal system is based on a _________ numbering system.
10
2
8
16
How many color names does CSS support?
140
256
1280
7 million
What is the name of the CSS selector to style the element with id named car?
.car
$car
#car
>car
car
Which of the following are valid ways to style one specific element on an HTML page? Select all that apply.
Use a class
Use an id
Use an inline style
Use an element selector
What is added to the opening tag of an element to give the element a unique identity?
style
class
id
ol
Sometimes you want to assign the same declaration to multiple selectors. To do this, type the selectors with a ____ after each one except the last.
colon
comma
semi-colon
period
In CSS, one or more __________ follow the selectors.
declarations
styles
classes
id's
Label the sections of this CSS rule.
A = Selector, B = Declaration, C = Declaration
A = h1 tag, B = attribute, C = attribute
A = class selector, B = property, C = property
A = id selector, B = property value pair, C = property value pair
Label the sections of this CSS rule.
D = property, E = value, F = property, G = value
D = color, E = blue, F = font, G = 12 pixel
D = configuration, E = setting, F = configuration, G = setting
D = tag selector, E = value, F = tag selector, G = value
What attribute determines the horizontal alignment of text?
alt
align
text-align
valign
What attribute specifies the file name for the external style sheet?
link
href
text
style
If you want to change an inline style, what do you have to do?
Find the html line of code in the html document body
change the .css style sheet
change the css in the head section
find the css declaration inside the <style> tag
What are documents with rule sets called?
Stylesheets
Selector files
Rule Documents
Property files
Where do you need to place comments for an internal style sheet?
in the .css document
anywhere inside the head
inside the <style> tag
anywhere in the html document
Which of these is a disadvantage of style sheets?
ease of use
time efficiency
rendering of different dimensions
load time
Which one of the following is a universal selector?
.
*
#
;
Which one of the following is a class selector?
.people
#world
:one
*ship
If you want the name of a person to appear in blue in any of the web pages that you have, which type of selector is most appropriate?
Universal
Class
ID
Tag
Which property is used to change the background color?
bgcolor
background-color
bcolor
backcolor
The following picture is a representation of a?
property
The Declaration
Value
Selector
What goes at the end of every item set in the Style section?
color purple
font-size 56
:
;
>
</div>
p {color: red;}
How does a browser know how to format an HTML page?
By reading the head section
By reading the style sheet
By reading the html code in the body
By reading the html
