Font size
WorksheetsHTML & CSS
Total questions: 155
Worksheet time: 3hrs 35mins
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>
HTML is what type of language ?
Scripting Language
Markup Language
Network Protocol
Programming Language
Apart from <b> tag, what other tag makes text bold ?
<fat>
<emp>
<black>
<strong>
What tag is used to display a picture in a HTML page?
picture
src
img
image
Which HTML tag produces the biggest heading?
<h7>
<h5>
<h3>
<h1>
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
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
TRUE OR FALSE: CSS is used to style web pages
True
False
A ___________ is an icon, graphic, or text that links to another file or object. These are what allow web pages to connect to other web pages
hyperlink
HTML Tags
browser
<br>
What is the correct way to write a comment in HTML?
/* comment */
<!– comment –>
ctrl + Ç
<¡– comment –>
What is the correct way to write a link in HTML?
<link href=”#”>…<link>
<a title=”#”>…</>
<a src=”#”>…</a>
<a href=”#”>…</a>
What does CSS mean?
Cascading Style Sheets
Center Style Steels
Calibre Style Sheet
No answer is correct
What is the correct order of the opening tags for a basic web structure?
<body>, <head>, <html>
<html>, <body>, <head>
<html>, <head>, <body>
<head>, <body>, <html>
td
one cell in a header
one column of a row
one row of a column
one data cell in a row
Which tag does not need a closing tag?
<a href>
<head>
<body>
<img src>
<th></th> is the code for .....
a table row
a table column
a table header
Thanos
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
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
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
</p>
</h1> is
Header Tag
Headline Tag
Half of a tag
Closing header tag
p {color: red;}
p {color: red;}
p {color: red;}
Which one of the following is a selector?
body {
color: green;
border: 0;
}
color
body
green
border
Which one is used to set background colour 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
What type of tag is this: <!-- -->
comments
questions
paragraph
image
Which is the correct HTML order...?
<html> <head> </head> <body> </body> </html>
<html> <head> </head> <body> </html> </body>
<html> <body> </body> <head> </head> </html>
<head> </head> <body> </body> <html> </html>
p {color: red;}
placed within his webpage?
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
p {color: red;}
All html tags use closing tags that start with </
True
False
Every html page is required to have a linked CSS page.
True
False
What are IFrames?
Buttons that link to other websites
Videos uploaded to your website
The number of views your website has
HTML pages embedded inside of other HTML pages
which html elements we use inside the <head> </head> element?
Body
Meta
Title
Html
Which tags go around the entire HTML document?
<body></body>
<html></html>
<head></head>
<h1></h1>
