NEW
Font size
WorksheetsSimple HTML and CSS
Total questions: 55
Worksheet time: 13hrs 33mins
the main heading in a web document?
Which of the following is an opening HTML tag?
</html>
<<html>>
<html>
<html/>
Which one of the following is a closing HTML tag?
<html />
</html>
<</html>>
<html>
What symbol should you use to target a class name in css?
#
()
.
class
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
TRUE OR FALSE: HTML is used to style web pages.
True
False
TRUE OR FALSE: CSS is used to style web pages
True
False
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
What tag do you use to make a numbered list?
<list>
<ol>
<li>
<ul>
How do you change the font color with CSS?
font-color: green;
color: green;
change-font-color: green;
fontcolor=green;
TRUE OR FALSE: All tags require a closing tag.
True
False
Where should you put the link tag to connect your CSS and HTML file?
Between the <head> </head> in HTML
Between the <body> </body> in HTML
None of the above.
Which web image format supports animation?
PNG
JPG
SWF
GIF
What tag is used for CSS when making internal style choices?
<style>
<css>
<body>
<script>
</h1> is
Heading Tag
Headline Tag
Half of a tag
Closing heading tag
Which one is used to set background color of a web page?
background-colour
background-color
background-position
background-image
Why won't the following anchor tag work?
<a href=https://www.google.com/>click here</a>
The link is incorrect. It should be ref, not href
The URL is missing quotation marks
There is no anchor tag in the code
The href is missing a closing tag
An error in a program that prevents the program from running as expected.
spider
ant
bug
fly
What does <li> stand for?
list item
last item
lost item
lazy idea
Which line contains the error?
2
5
7
10
Where does your internal CSS coding go?
In the BODY
In the HEAD
After everything else
In the H1
If I wanted to change the entire background of my web page, I would add which of the following CSS tags?
p
h1
#h1
body
What does a class do?
adds color to words
adds style to specific elements
adds style to a whole page
adds a lot more work
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;
}
p {color: red;}
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
The ____________ property specifies what kind of border to display.
border-style
border-color
border-width
border-design
The _________ property specifies the thickness of the four borders.
border-style
border-color
border-width
border-height
The ____________ are used to create space around elements, outside of any defined borders.
Margin
Padding
Border
Box Model
The ___________ is used to create space around an element's content, inside of any defined borders.
Margin
Padding
Border
Box Model
Highlighted Text?
<h> </h>
<mark> </mark>
<highlight> </highlight>
<yellow> </yellow>
