Worksheetsformatting a web page
Total questions: 118
Worksheet time: 1hrs 12mins
HTML coding involves using ____________ to create webpages.
Tabs
Tags
Labels
Quotes
HTML stands for...
Hyper Text Markup Language
High Tech MachineLanguage
High Tech Modem Language
Hyper Tech Markup Lexicon
Which tag would you use to make a heading?
<heading></heading>
<bigger></bigger>
<h></h1>
<h1></h1>
Which of the listed heading tags creates the largest heading?
h1
h2
h3
h6
Which is the correct HTML tag for creating an unordered list?
<ul>
<uline>
<u>
<under>
What is the correct HTML for creating a hyperlink?
<a href="https://www.fireninjaa.org">Fireninjaa</a>
<a url="https://www.fireninjaa.org">Fireninjaa</a>
<a>https://www.fireninjaa.org</a>
Which of the following is the correct HTML syntax for inserting an image
<img>apple.jpg</img>
<img src="apple.jpg">
<image src="apple.jpg">
<img ="apple.jpg">
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;
TRUE OR FALSE: All tags require a closing tag.
True
False
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">
This language _______________was developed by ___________
Hyper Text Mark Up Language, Tim Berners Lee
Hyper Text Marking Up Language, Tim Berners Lee
Hyper Text Mark Up Language, Bill Gates
Hyper Text Mark Up Language, Sunder Pichai
Which is the correct HTML tag for a new paragraph?
<para>
<paragraph>
<p>
<pr>
Which of the following HTML tags is not valid?
<h1>
<h7>
<h4>
<h5>
Which tag is used to make a text bold?
<strong>
<bold>
<b>
<big>
What is called an element that does not have a closing tag?
Empty Tag
Container Tag
Closed Tag
Tag
Select the correct example of an empty element.
</ img> <img>
<img> </img>
</ img>
<img>
What is the correct HTML element for inserting a line break?
<l>
<br>
<break>
<line>
Which character is used to indicate an end tag?
*
/
\
|
The latest versio of HTML is
HTML 4.0
HTML 2.0
3.2
HTML 5
What is the correct HTML element for inserting a horizontal line?
<h>
<hr>
<hl>
<horizontal>
p {color: red;}
p {color: red;}
What is the correct format for setting the color property to red in CSS?
Color: red
color: brg(0, 0, 0)
Font-size: 20px
Text-align: center
What is wrong with this code?
The style sheet <link> statement belongs between <head> and </head>
The style sheet <link> statement belongs between <title> and </title>
The style sheet <link> statement belongs between </head> and <body>
The style sheet <link> statement belongs immediately after the DOCTYPE statement
Which CSS property is used to underline a text?
text-direction
text-indent
text-align
text-decoration
changing the color of the background can be done using
Background-colour
backGround-color
background-color
all the above
p {
font-face: Arial;
}
p {
family-font: Arial;
}
p {
font-family: Arial;
}
p {
font: Arial;
}
p {
align: center;
}
p {
align=center;
}
p {
text-align: center;
}
p {
center;
}
Specifies the size of a font
Font-Family Property
Font-Size Property
Text-Decoration Property
Text-Align Property
Which is the correct way to format a Font Family for a paragraph?
p {
font-face: Arial;
}
p {
font-family: Arial;
}
p {
family-font: Arial;
}
p {
font: Arial;
}
Which of the following sets the color of text in a paragraph?
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
RGB stands for
Red, Gold, Blue
Red, Green, Blue
Red Green, Black
Red, Gold, Black
This is a picture of a ____.
CSS Rule
HTML Rule
Tags
Coding
What is the correct code for a paragraph in CSS?
P
<p> </p>
.p
p{
}
What is the proper CSS format for background color?
back-ground color:orange:
backgroundcolor-orange;
background:color:orange;
background-color:orange;
In this code: h1 { color: red; font-size; 24px } What is font-size and color this header be?
Color will be red, and the font size will be 42px.
Color will be h1, and the font size will be 24QA.
Color will be pink, and the font size will be 24px.
Color will be red, and the font size will be 24px.
Which link is correct?
<h1 html="style.css">
{ p;
color=black;
}
<h3:
color= black
>
h1 {
color:black;
}
Which color will this paragraph be?
p {
color: red;
}
Select the rule set to make the paragraph 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;
}
color: rgb( 0 , 0, 255);
Red
Green
Blue
Black
color: rgb( 0 , 255, 0);
Red
Green
Blue
White
color: rgb( 255 , 0, 0);
Red
Green
Blue
Black
Which CSS property controls the text size?
font-style
font-size
font-family
font-width
Choose an INCORRECT unit for text size
em
pt
pc
pixel
What is the correct order for Font Shorthand
font: font-weight font-style font-size font-family;
font: font-style font-variant font-family font-size;
font: font-variant font-style font-family font-weight;
font: font-weight font-style font-family font-size;
Lowercase, uppercase, capitalize are examples of value for _______
text-align
text-indent
text-transform
text-emphasis
Identify CSS code to change text color to YELLOW
<div style="background-color:black;color:yellow">
<div style="background-color:yellow;color:black">
<div class="background-color:yellow;color:black">
<div type="background-color:black;color:yellow">
Based on given box properties, what is C?
Padding
Margin
Content
Border
Find the INCORRECT color value for HTML text.
rgb(red,green,blue)
#rrggbb
hsl(hue, saturation, lightness)
color code
Given:
border-width: 10px 20px 30px 40px;
Identify value for right border width.
10px
20px
30px
40px
Select the INCORRECT value for a border-style.
dashed
dotted
groove
straight
How to create the above border?
border-style: double solid dashed dotted;
border-style: solid dashed dotted double;
border-style: double dashed dotted solid;
border-style: dotted solid dashed double;
changing the color of the background can be done using
Background-colour
backGround-color
background-color
all the above
p {color: red;}
Specifies the margin area on all four sides of an element
Height Property
Margin Property
Float Property
Border-Radius Property
Specifies the color of an element's four borders
Border-Style Property
Border-Radius Property
Border-Color Property
Border-Width Property
changing the color of the background can be done using
Background-colour
backGround-color
background-color
all the above
p {color: red;}
Specifies the margin area on all four sides of an element
Height Property
Margin Property
Float Property
Border-Radius Property
Specifies the color of an element's four borders
Border-Style Property
Border-Radius Property
Border-Color Property
Border-Width Property
How can you select all of the h1 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">
What code is used to format webpages such as changing the color of text, the color of the background, or borders around elements?
CSS
Javascript
HTML
XML
What code is used to place content such as hyperlinks, images, paragraphs and headings on a web page?
CSS
Javascript
HTML
XML
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.
What is the correct code to change the font size of a paragraph in CSS to 16 points?
h1 {
font-size: 16px;
}
p {
size: 16px;
}
p {
font-size: 16;
}
p {
font-size: 16px;
}
What CSS code sets heading 3 to underlined?
h3 {text-decoration:underline;}
h3 text-decoration:underline;
h3 {format:underline;}
h3 {underline;}
In general, what order should CSS tags appear?
The same as the order they appeared on the HTML page.
Whatever order you like.
In alphabetical order.
In numerical order.
What is this? #ff00ff
A hexadecimal code used for colours.
HTML code used for websites.
CSS code used for formatting.
JavaScript code used for interactivity.
How do we make a heading 2 italic?
h2 {text-decoration:italic;}
h2{format:italic;}
h2:text-decoration{italic};
h2=text-decoration{italic};
Inside which tag do we add CSS to a webpage?
<style> </style>
<css> </css>
<formatting> </formatting>
<colours> </colours>
In which section of a webpage do we add the <style> section?
<head>
<body>
<html>
<footer>
How do we set the size of paragraph text to 32px?
p {text-size:32px;{
p {text-size:32px;}
p {text-size:32px}
p {text-size:32}
When adding more than one format to a selector in CSS, how do we separate them?
With a semi-colon ;
With a slash /
With a colon :
With a full stop .
How do we make h1 underlined and dark green?
h1 {color:darkgreen;
text-decoration:underline;}
h1 {colour:darkgreen;
text-decoration:underline;}
h1 {color:green;
text-decoration:u;}
h1 {color:darkgreen
text-decoration:underline;}
What's the problem with this code?
h1 {colour:red;}
The line isn't ended correctly.
It uses the wrong kind of brackets.
It used the British spelling of color.
Red isn't a good colour to use on a website.
