NEW
Font size
WorksheetsHTML, CSS, and Design
Total questions: 59
Worksheet time: 30mins
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 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.html">About This Site</a>
<a href="/about">About This Site</a>
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 correctly uses div to style multiple elements the same way?
<div class="intro">
<h2>Welcome</h2>
<p>Hi, welcome to my page.</p>
</div>
<div>
<h2 class="intro">Welcome</h2>
<p class="intro">Hi, welcome to my page.</p>
</div>
<div>
.intro{
font-size: 16px;
font-style: italic;
}
<h2>Welcome</h2>
<p>Hi, welcome to my page.</p>
</div>
<h2 div class="intro">Welcome</h2>
<p div class="intro">Hi, welcome to my page.</p>
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;
}
Which of the following will turn the h1 tag blue as the mouse hovers over it?
hover > h1 {
color: blue;
}
h1:hover {
color: blue;
}
h1; hover {
color: blue;
}
h1, hover {
color: blue;
}
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
CSS stands for
Code Style Sheet
Coding Style Sheet
Cascading Sheet Style
Cascading Style Sheet
Which is the correct CSS syntax?
body {color: yellow;}
body:color=yellow;
{body:color= yellow;}
{body;color: yellow;}
What are the basic tags to start a web page?
<!DOCTYPE html>
<html>
<head> </head>
<title> </title>
<body> </body>
</html>
<html>
<a> </a>
<p> </p>
<footer> </footer>
<DOCTYPE>
<html>
<link> </link>
<ol> </ol>
<html>
<!DOCTYPE html>
<body> </body>
<parapraph> </paragraph>
<title> </title>
<end> </end>
What code is used for an ordered list?
<ul> </ul>
<ol> </ol>
<list> </list>
<p> </p>
What code is used to make a bulleted list?
<p> </p>
<ol> </ol>
<ul> </ul>
<list> </list>
what code is used to make a hyperlink?
<hyperlink> </hyperlink>
<link>
<p> </p>
<a> </a>
What code is used to add an image?
<add image>
<img src="image.jpg">
img {}
<add Image>
In order to link page one to page two: Which code is correct?
<a href="page1.html" > Page 1</a>
{a href="page1.html"} Page1{/a}
<img src=Page1.jpg>
<link rel"page1">
Which is the correct code for a numbered list?
<ul>
<li> item one</li>
<li> item two</li>
</ul>
<ol>
<li> item one</li>
<li> item two</li>
</ol>
<list>
<li> item one</li>
<li> item two</li>
</list>
<p>
<li> item one</li>
<li> item two</li>
</p>
Which of the following codes starts a set of HTML code?
<html>
<doctype html>
<!DOCTYPE HTML>
<doctype><html>
Which of the following symbols indicates an ending tag in HTML?
;
/
<>
!
When should you use the <ol> code to make a list?
Steps for a recipe
Top 10 items
List of names
None of the above
When should you use the <ul> code to make a list?
Top 5 Chef Favorites
Ingredients list
Steps to complete a recipe
None of the above
What is the difference between HTML and CSS?
HTML provides the content, CSS provides the pictures
HTML provides the structure & content, CSS provides the color / look of the web page
HTML and CSS are the same thing
None of the above
How can you select all of the h3 tags on the webpage at one time to change the font color to blue?
#allh1s { color: blue; }
#h1 {blu}
h1 {color: blue;}
<h1 font-color="blue">
border./* This is a multi-line comment */
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 ONLY self closing tag?
<img>
<a>
<h4>
<body>
What brackets do you use in CSS?
<>
{}
()
[]
What measurement do you use in CSS to decide on the size of fonts or content?
Pixels
Points
Picas
Inches
