Font size
WorksheetsCSS - test
Total questions: 81
Worksheet time: 1hrs 14mins
p {color: red;}
Change the border size of the body or image
border-style
border-width
border-color
width
To create a dotted border around the page
border-style
border-width
border-color
width
Set the color of the border
border-style
border-width
border-color
width
sets the element to one side of the page
margin
width
float
height
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
p {
text-align: center;
color: blue;
}
body {
text-align: center;
color: blue;
}
What is the correct HTML for referring to an external style sheet?
<style src="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
<link rel="stylesheet" type="text/css" href="mystyle.css">
Which is the correct CSS syntax?
body {color: yellow;}
body:color=yellow;
{body:color= yellow;}
{body;color: yellow;}
Which one is the correct syntax for CSS?
property {selector : value}
value {property : selector}
selector {value : property}
selector { property : value}
An identifier that allows multiple elements in an HTML document to be styled in the same way
Algorithm
CSS class
Style Sheet
CSS
A document that controls how a web page will appear.
CSS class
Style sheet
HTML
CSS
A language that controls the way content on a website appears
CSS
HTML
Javascript
Pig Latin
Color: rgb(255,255,255)
Red
Green
Black
White
color: rgb(0,0,255)
Red
Green
Blue
Black
color: rgb(0,255,0)
Red
Green
Blue
White
color: rgb(0,0,0)
Red
Green
White
Black
color: (255,0,0)
Red
Green
Blue
Black
Which one of the following is an ID?
.red
#blue
:white
,yellow
The . symbol in CSS designates that a __________ is being selected.
an id
a class
an image
a link
The # symbol in CSS designates that __________ is being selected.
an id
a class
a table
an image
CSS rules are enclosed with ___________?
< >
( )
{ }
" "
CSS rules starts with a ___________?
selector
tag
code
bracket
What property would move all text in a paragraph to the right?
text-align
font-position
word-spot
text-movement
What is wrong with this code -
p {
background-color=green ;
}
;
{
}
=
What type of CSS uses a separate file?
embedded
inline
external
<span style="color: red;">word</span>
inserts a hyperlink
inserts a picture
changes the color of a word to red
does nothing
width: 450px;
sets the width of an element
sets the color of an element
does nothing
What is the main difference between ID and Class selector?
An ID selector is NOT unique, a class selector is unique
An ID selector can be reused many times, a class selector can use only once.
An ID selector can be used to identify only one element, the class selector can identify more than one.
An ID selector can be used to identify more than one element, the class selector can identify only one element.
Which of the following has the highest priority in CSS rule?
Inline style
Browser defaults
Internal style sheet
External style sheet
If you would like to make the corners of your border rounded, which property would you use?
border-circle
border-round
border-shape
border-radius
What symbol should you use to target a class name in css?
#
()
.
class
<p> tag is for...
Page of Text
Picture
Paragraph of text
Pineapples
How can I select all h1 tags that are immediate children of div tags?
div h1 {
...
}
div > h1 {
...
}
div {
h1 {
...
}
}
.h1 div {
...
}
What is the function of the div tag?
To define a section of an HTML page
To group a block of elements together to format them with CSS
To efficiently apply the same style to several different elements
All of the above
Which of the following is the proper way to link to the about.html page from the index.html page?
<a href="about">About This Site</a>
<a href="about.html">About This Site</a>
<a href="/about">About This Site</a>
<a href="/about.html">About This Site</a>
What should your files end with?
.css
html
index
.html
Is this the correct link to link to the style.css page?
<link rel="stylesheet" type="text/css" href="style.css">
Yes
No
What are the 3 ways we select css elements?
href
class
tag
span
id
Which of the following selects all a tags that are immediate children of div tags?
div > a {
...
}
...
}
div < a {
...
}
div + a {
...
}
Which of the following selects images as the mouse hovers over them and sets their size to 350px by 350px?
img:hover {
width: 350px;
height: 350px;
}
img :hover {
width: 350px;
height: 350px;
}
img::hover {
width: 350px;
height: 350px;
}
img > hover {
width: 350px;
height: 350px;
}
Which of the following defines an animation change-color that changes the font color from green to red?
@keyframes change-color {
from {color: green;}
to {color: red;}
}
@animation change-color {
from {color: green;}
to {color: red;}
}
@keyframes change-color {
color: {color: green, red;}
}
@animation change-color {
color: {color: green, red;}
}
The stylesheet is used to
code the css page.
link css to the html page.
add css to notepad++
link java script to the html page.
What is the proper CSS format for background color?
back-ground color:orange:
backgroundcolor-orange;
background:color:orange;
background-color:orange;
Every html page is required to have a linked CSS page.
True
False
Comments in coding is used to help
the programmer
anyone viewing the website
the editor of the code
the reader of the code
Every element of html coding must have an opening and closing tag.
True
False
What is the proper way to code a website title using HTML
title{
New Website}
<title>New Website</title>
.tile New Website
<title>New Website<title>
What HTML code is used to center the words on the page when the coding starts on the left margin?
right-align;
<center></center>
left-align;
<middle></middle>
What is the correct code for a paragraph in CSS?
P
<p> </p>
.p
p{
}
the main heading in a web document?
HTML stands for
Hyper Text Marker Language
Hyper Text Marker Lingo
Hyper Text Markup Language
Hyper Text Markup Lingo
