WorksheetsHTML & CSS
Total questions: 133
Worksheet time: 4hrs 26mins
What does HTML stand for?
Hyper Text Website Language
Hyper Text Markup Language
Hyper Text Making Language
<h1> is an example of a _______.
Headline Tag
Paragraph Tag
filename
<p> is a _______ tag.
image
paragraph
filename
Web pages starts with which of the following tag?
<form>
<HTML>
<body>
<Title>
Choose the correct HTML element for the largest heading:
<head>
<h1>
<heading>
<h6>
HTML controls the _________ of a webpage.
feel
precision
structure
style
<p> is the opening tag for a _____________
page
paragraph
preorder
period
Which character is used to indicate an end/closing tag?
!
#
/
\
Which of the following is the proper format for an HTML tag?
>h1<Content Affected by Tag >/h1<
<h1>Content Affected by Tag<h1>
<h1 Content Affected by Tag />
<h1>Content Affected by Tag</h1>
What is the correct HTML element for inserting a line break?
<lb>
<BREAK>
<br>
<break>
This tag contains all the main contents of your webpage.
<body>
<head>
<contents>
<p>
This tag defines a heading at the smallest size.
<h6>
<h2>
<h7>
<h1>
In this code <img src
What does img stand for?
imagine
image
source
immg
Which is the proper way to write an h1 tag
<h1>Hello</h1>
<h1>"Hello
{h1}Hello{/h1}
<h1>Hello<h1>
What does a closing tag look like?
< >
<\ >
</ >
<< >>
What does a opening tag look like?
< >
</ >
<< >>
<
Which code below is correct for a hyperlink
<a>
"https://google.com"
Click Me
</a>
<a>Click Me>
"https://google.com"
</a>
<a herf="https://google.com">
Click Me
</a>
<a href="https://google.com">
Click Me
</a>
src attribute in an image tag means what?
Source of the image
Name of the image
Description of the image
Not used with image tag
Which list tag would you use for an ordered list
<h1></h1>
<ol></ol>
<ul></ul>
<a></a>
<th></th> is the code for .....
a table row
a table column
a table header
Thanos
Which of the following is the code for a paragraph to be blue?
<td style=“background-color:blue;”>
<h1 style=“font-size:60px;”>
<p style=“color:blue;”>
<tagname style=“property:value;”>
What is the font size in this code: <p style=“color:blue; background-color:yellow;
font-size:60px”>Hello</p>
20pixles
40pixels
50pixels
60pixels
When working with color codes RGB stands for...
Green Red Purple
Red Great Blue
Red Green Blue
Blue Green Raspberry
Which of the tag is used to create a numbered list?
<L> </L>
<LI> </LI>
<li> </lo>
<ol> </ol>
How can you make a list that has no particular order?
<ol> </ol>
<ul> </ul>
<ol> <li>
<li> </ul
Which of the following is a valid CSS rule?
h1 {
color: blue;
}
<h1> {
color: blue;
}
h1 {
color="blue";
}
h1 {
color=blue;
}
</p>
Group of webpages is called _____.
Website
Web browser
Web Search engine
None of the above
Which portion of this tag is the text that will show up if there is a problem with my photo?
<img src="cat.jpeg" alt="cat jumping"/>
img src=
cat.jpeg
cat jumping
alt=
<input type="___________" name="gender" value="male"> Male
<input type="___________" name="gender" value="female">Female
(Fill the type of input which used to select just one option.)
(a)
Choose the correct HTML element to define bold text
<b>
<i>
<bold>
What is the name of the two sections associated with HTML?
face and feet
head and body
neck and stomach
top and bottom
Which is the correct tag to change the colour of Hello to RED?
<font color="Pink">This is some text!</font>
<font color="red">Hello</font>
<font color="red">hello//</font>
<font colour="red">This is some text!</font>
Tag used to create a table
<td>
</tc>
<table>
<tr>
Which of these elements are all <table> elements?
<table><tr><td>
<table><head><tfoot>
<table><tr><tt>
<thead><body><tr>
What is the correct HTML for inserting an image?
<img href="image.gif" alt="MyImage">
<image src="image.gif" alt="MyImage">
<img alt="MyImage">image.gif</img>
<img src="image.gif" alt="MyImage">
WHICH FOLLOWING TAGS DESCRIBES THE DESCRIPTION LIST?
<dl>
<dt>
<dd>
<ol>
An ordered list begins with______ and ends with_________
<ol>and</ul>
<ol>and</ol>
<ol> and </al>
<al> and </al>
The <tr> tag is used to define a
coloum
table
data
row
All tags in HTML require a closing tag.
Which of the following will put data in an HTML table?
What HTML input type is used to create this password field?
<input type="text">
<input type="submit">
<input type="password">
<input type="radio">
HTML form is used for/to
Collect user input
It is not a section of a document
Contains password control only
Users can enter data in specific fields
to capture website visitors' information
The _______ tag is used to create an HTML form for user input.
<fieldset>
<input>
<form>
<label>
CSS is the...
language for designing web pages
longitudinal compass for directions
way we send information to each computer
way we set up each tag
The color this element will be________
Blue
Red
Blue
No color
Looking at the picture below, based on those 3 important rules to remember, what will the color of the text be?
Red
Blue
No color
White
What color will this element be?
Green
Blue
Red
No color
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
This is a picture of a ____.
CSS Rule
HTML Rule
Tags
Coding
What are the three types of style sheet
Internal, external, inline
Inline, internal, extreme
Insidious, internal, external
None of the above
When you use class selector
What should present infront of classname
#
&
@
.
When you use id selector
What should present infront of idname
?
@
#
.
-Applied inline to individual HTML elements on an HTML page.
-Embedded within an HTML page to affect all specified elements on that page.
-Collected in an external file that is linked to multiple HTML pages.
What is a CSS selector?
The value in a markup tag you want to change with a CSS style
Any element to which designated styles are applied
A format instruction in a CSS file
The property in a markup tag to which designated styles are applied
the main heading in a web document?
Which is the correct CSS syntax?
body {color: yellow;}
body:color=yellow;
{body:color= yellow;}
{body;color: yellow;}
p {color: red;}
border.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 embedded rule is used to assign the location of the image on a web page?
background-position
background-attachment
background-repeat
Which CSS embedded rule is used to assign the location of the image on a web page?
background-position
background-attachment
background-repeat
Which of the following phrases must be added to CSS embedded code to stop the background image from scrolling with the text?
fixed
no-scroll
cover
What word must be added to the code "background-size:" to make the image fill the entire web page background?
cover
fill
replace
Which CSS embedded rule allows the text to scroll but the image to stay still?
background-attachment
background-position
background-repeat
Which line of CSS embedded code is correct to change the background color of the web page to purple.
body{background-color:purple;}
<body style="background-color:purple;>
body{color:purple;}
Which of the following CSS embedded codes will add a background image to the web page.
body {background-image:url("link goes here");}
body{img src="link goes here";}
Identify CSS property to assign position for a background image.
display: value;
position: value
background-postion: value;
align: value;
How to display a background image in the above format:
background-repeat: repeat-x;
background-image: repeat;
background-repeat: horizontal;
background-image: repeat-y;
Select the correct CSS command to assign a background color for the HTML page.
color: red;
bgcolor: red;
background-layout: red;
background-color: red;
A shorthand property used to specify the individual border properties: border-width, border-style and border-color.
border-bottom
border
border-left
border-top
Which is the value in the CSS code below?
h1 {border: 29px solid red}
h1
{ }
border
29px solid red
This code will work.
h2 {border: 80cm solid gold;}
True
False
Identify the CSS code use to create this border.
p {border: 5px solid pink;
border-radius:25px; }
p {border: 5px double pink;
border-radius:25px; }
p {border: 5px solid pink; }
p {border: 5px dotted pink;
border-radius:25px; }
Which CSS code create a white and dotted styled border.
h3 {border: 10px white pink;}
h3 {border: 10px dotted gold;}
h3 {border: 10px white dotted;}
h3 {border: 10px dotted white;}
Will this code works?
h1 {
border-top: 10px dashed violet;
border-top: 25cm double green;
border-top: 60px white inset;
border-top: 30pt solid red;}
YES
NO
You can customize each side of the border.
TRUE
FALSE
Which of the property changes the width, style and color of the right border?
border-top
border-bottom
border-right
border-left
Change the border size of the body or image
border-style
border-width
border-color
width
To create a dotted border around the page
border-style
border-width
border-color
width
Set the color of the border
border-style
border-width
border-color
width
Select the following properties that can be used for formatting text
Table Border
Text Color
Text Alignment
List Alignment
This is used to set the color of the text
Text Indentation
Text Alignment
Text Design
Text Color
What are the three types of style sheet
Internal, external, inline
Inline, internal, extreme
Insidious, internal, external
None of the above
When you use id selector
What should present infront of idname
?
@
#
.
When you use class selector
What should present infront of classname
#
&
@
.
p {color: red;}
