Font size
WorksheetsHTML & CSS QUIZ 2
Total questions: 30
Worksheet time: 20mins
What symbol should you use to target an id in css?
.
+
id
#
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
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
How do you change the font color with CSS?
font-color: green;
color: green;
change-font-color: green;
fontcolor=green;
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 of the following is the correct CSS link tag?
<link rel="styles" href="stylesheet.css">
<link href="stylesheet">
<link rel="stylesheet" src="styles.css">
<link rel="stylesheet" href="styles.css">
Which of the below options is correct to change the background color to blue in CSS?
body {
background-colour: lightblue;
}
body {
background-color: lightblue;
}
body {
background:color: lightblue;
}
None of the above
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?
Tag such as <head>, <h1>, <p> are (a) tags. (hint: types of tag)
In a table, which tag is used for inserting table headings?
<table>
<td>
<th>
<caption>
Write the basic structure of an HTML document
Google Chrome, Mozilla Firefox, Microsoft Edge are examples of?
Websites
Search engines
Text editors
Web browsers
Which of the following is the proper way to apply the CSS code inside style.css to the home.html file?
Inside home.html:
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
Inside home.html:
<head>
<style href="style.css"></style>
</head>
Inside style.css:
<html href="home.html">
Inside style.css:
applyTo {
href: home.html;
}
Which of the following selects all p tags with the class alert and makes them red?
p.alert {
color: red;
}
p {
.alert {
color:red;
}
}
.alert p{
color: red;
}
p alert{
color: red;
}
