WorksheetsHTML and CSS Fundamentals
Total questions: 119
Worksheet time: 1hrs 3mins
During a computer class, Ava asked her teacher what HTML stands for. The teacher replied with several options. Can you help Ava choose the correct one?
HyperText Markup Language
Hyperlink Text Markup Language
HighText Markup Language
HyperText Markup Tool
During a web development class, Priya asked her teacher about the purpose of the
tag in an HTML document.The
tag is used to contain meta-information about the document.The
tag is used to display the main content of the document.The
tag is for defining the layout of the webpage.The
tag contains the visible text that users see on the page.Isla is creating a webpage and needs to add a link to her favorite blog. Which attribute is used to specify the destination of that link?
link
href
src
target
Isla is learning about web design in her class. One day, her teacher asked the students what CSS stands for. Can you help Isla answer the question?
Cascading Style Sheets
Cascading Style Scripts
Creative Style Sheets
Cascading Syntax Styles
In a school project, Aria wants to style all the elements that belong to a specific group. Which CSS selector should she use to select elements by their class?
[class=classname]
*classname
.classname
#classname
Elijah is learning how to style his webpage. How does he apply a CSS style to an HTML element?
You can only use inline styles to apply CSS.
HTML elements cannot have CSS styles applied to them.
You can apply a CSS style to an HTML element using inline styles, internal styles, or external styles.
CSS styles can only be applied through JavaScript.
Abigail is creating a webpage for her school project. What is the purpose of the
The
The
The
The
During a class project, Mason needs to create a form for collecting feedback. Which input type should he use for a single-line text field?
text
textarea
checkbox
radio
Lily is filling out a form for her school project, and she wants to set a default value for her favorite color input field. What attribute should she use to specify this default value?
default
value
placeholder
initial
How can Aria create a checkbox in her HTML form?
Example Text
Example Button
Example Checkbox
Example Radio
During a class project, Mia is creating a form to collect feedback from her classmates. What is the purpose of the
To style the form input elements.
To submit the form data to the server.
To create a dropdown menu in a form.
To associate a text label with a form input element.
Lily is designing a poster for her school project and wants to make the title stand out by changing its text color. Which CSS property should she use?
font-size
background-color
text-decoration
color
In a school project, Aria is responsible for designing the webpage. She decides to use an ID selector for the main header of the page, while Grace uses a class selector for styling multiple sections of the content. What is the difference between an ID selector and a class selector in CSS?
An ID selector is used for styling text, while a class selector is used for layout.
An ID selector is unique to one element, while a class selector can be used on multiple elements.
An ID selector can be used on multiple elements, while a class selector is unique to one element.
Both ID and class selectors can be used on multiple elements without restrictions.
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>
Which tag is used to add an image?
<image>
<img>
<<img>>
</image>
Which of the following is the correct way to add an attribute?
<src>
classes:ids
id="title"
<id>
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
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 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">
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;
Which one is the largest heading?
h1
h2
h4
h6
Which one is the smallest heading?
h1
h2
h4
h6
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>
______ is used to create electronic documents (called pages) that are displayed on the World Wide Web. Every web page you see on the Internet is written using one version of _____ code or another.
JPEG
CSS
HTML
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>
A ________ is a software program to present and explore content on the World Wide Web.
Word Processor
Browser
HTTP
attribute
What does HTML stand for?
Hyper Text Markup Language
Hilary Text Markup Language
Text Markup Language Hyper
Hippo Text Markup Language
What is CSS?
CSS outline the style of an HTML web page, it is a language by which we can set the behaviour of an HTML web page. It describes how the HTML content will be shown on screen.
CSS controls the layout of several HTML web pages. CSS is referred to as the Cascading Style Sheet.
CSS is a language that can only be coded with HTML.
What even is CSS?
What are tags?
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbol (<) and the greater than symbol (>). A slash symbol is also used as a closing tag.
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbol (-) and the greater than symbol (-). A slash symbol is also used as a closing tag.
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbol (") and the greater than symbol ("). A slash symbol is also used as a closing tag.
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbols (<--) and the greater than symbols (<!--). A slash symbol is also used as a closing tag.
Do all HTML tags come in a pair?
Yes
No
What is formatting in HTML?
The HTML formatting is a process of format the text for a better look and feel. It uses different tags to make text bold, italicized, underlined.
HTML is a formatting process for better images and looks.
What is the internet?
A wire in the ocean
A network of computers
Pictures of cats
Dominos
All of the above
What are client-side devices?
Two connected computers
Devices that we, the users/clients, use to access the internet. The ones on our desks, and pockets.
A network of computers
A wire in the ocean
What is a server?
It is a computer, that hears the client side device request, and generate a response to it.
It is the device we use to access the internet
Pictures of Cats
It is a cable that connects two or more computers
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>
Which tag is used to add an image?
<image>
<img>
<<img>>
</image>
Which of the following is the correct way to add an attribute?
<src>
classes:ids
id="title"
<id>
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
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 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">
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;
Which one is the largest heading?
h1
h2
h4
h6
Which one is the smallest heading?
h1
h2
h4
h6
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>
______ is used to create electronic documents (called pages) that are displayed on the World Wide Web. Every web page you see on the Internet is written using one version of _____ code or another.
JPEG
CSS
HTML
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>
A ________ is a software program to present and explore content on the World Wide Web.
Word Processor
Browser
HTTP
attribute
What does HTML stand for?
Hyper Text Markup Language
Hilary Text Markup Language
Text Markup Language Hyper
Hippo Text Markup Language
What is CSS?
CSS outline the style of an HTML web page, it is a language by which we can set the behaviour of an HTML web page. It describes how the HTML content will be shown on screen.
CSS controls the layout of several HTML web pages. CSS is referred to as the Cascading Style Sheet.
CSS is a language that can only be coded with HTML.
What even is CSS?
What are tags?
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbol (<) and the greater than symbol (>). A slash symbol is also used as a closing tag.
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbol (-) and the greater than symbol (-). A slash symbol is also used as a closing tag.
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbol (") and the greater than symbol ("). A slash symbol is also used as a closing tag.
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbols (<--) and the greater than symbols (<!--). A slash symbol is also used as a closing tag.
Do all HTML tags come in a pair?
Yes
No
What is formatting in HTML?
The HTML formatting is a process of format the text for a better look and feel. It uses different tags to make text bold, italicized, underlined.
HTML is a formatting process for better images and looks.
What is the internet?
A wire in the ocean
A network of computers
Pictures of cats
Dominos
All of the above
What are client-side devices?
Two connected computers
Devices that we, the users/clients, use to access the internet. The ones on our desks, and pockets.
A network of computers
A wire in the ocean
What is a server?
It is a computer, that hears the client side device request, and generate a response to it.
It is the device we use to access the internet
Pictures of Cats
It is a cable that connects two or more computers
