Font size
WorksheetsOnline Quiz in HTML and CSS Prepared by Pele Flores
Total questions: 68
Worksheet time: 34mins
What does HTML stand for??
Home Training Metric Length
Homogenous Technical Support
Hype Tense Microsoft Level
Hyper Text Markup Language
Which set contains all of the DEFAULT tags needed to create a webpage?
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<main>
</main>
</body>
</html>
<html>
<head>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
<!DOCTYPE html>
<html>
<head>
<title>
</title>
</head>
<body>
</body>
</html>
Choose the correct HTML element for the largest heading:
<head>
<h1>
<heading>
<h6>
<p> is the opening tag for a _____________
page
paragraph
preorder
period
What defines the beginning and ending of the visible part of a webpage?
<head> main part of the document </body>
<body> main part of the document </html>
d) </body> main part of the document <html>
<body> main part of the document </body>
What is the correct syntax for defining a hyperlink in HTML?
<a href=”url”> Link text </a>
<a href=”url”> Link text <a>
<a=”url”> Link text <a>
<ref=”url”> Link text <a>
Which character is used to indicate an end tag?
!
#
/
\
How can you make a list that has no particular order?
<ol> </ol>
<ul> </ul>
<ol> <li>
<li> </ul
You need a closing tag for an image without text
True
False
Which of the following contains a nested list
<ul>
<li>Apples</li>
<li>Cookies</li>
<li>Milk</li>
</ul>
<ul>
<li>Apples</li>
<li>
Cookies
<ul>
<li>Chocolate Chip</li>
<li>Peanut Butter</li>
</ul>
</li>
<li>Milk</li>
</ul>
The "href" of an anchor tag and the "src" of an image tag are both examples of an
(a)
Where does the content of the <title> element show up in the browser?
At the top of the page.
In the browser tab.
It's metadata, so it doesn't show up.
At the bottom of the page.
What tag adds an image to the page?
<image>
<pic>
<img>
Which of the following are inline elements?
<span>
<p>
<h1>
<em>
<div>
"/images/portrait.png" is an example of a(n) _______ url.
relative
absolute
Which is the proper way to write an h1 tag
<h1>Hello</h1>
<h1>"Hello
{h1}Hello{/h1}
<h1>Hello<h1>
Which of the following codes would create a horizontal line
<br>
<h1></h1>
<hr>
<p>
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>
<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;”>
When working with color codes RGB stands for...
Green Red Purple
Red Great Blue
Red Green Blue
Blue Green Raspberry
You should save HTML files with which file extension?
.htm
.webpage
.html
.index
This coding is used to create a paragraph:
<pr></pr>
<paragraph></paragraph>
<p><p>
<p></p>
HTML tags are always surrounded by
( )
< >
{ }
" "
Which tag pair is used to create the largest heading?
<h1></h1>
<h3></h3>
<h5></h5>
<h7></h7>
Everything visible on a web page goes between these two tags.
<body> </body>
<title> </title>
<head> </head>
<p> </p>
Which of the following creates the smallest header?
<h1></h1>
<h2></h2>
<h5></h5>
<h6></h6>
When coding an ordered or unordered list, each separate item in the list uses this tag:
<list></list>
<li></li>
<item></item>
<ul></ul>
(a) is an attribute that adds information about the style of the HTML element, such as color, font, size, etc.
The CSS (a) property defines the background color for an HTML element.
The CSS (a) property defines the text color for an HTML element:
The CSS (a) property defines the font to be used for an HTML element
The CSS (a) property defines the text size for an HTML element
The CSS (a) property defines the horizontal text alignment for an HTML element
Which of the following lines of code in html has invalid command?
(1) <DOCTYPE html>
(2) <html>
(3) <body>
(4) </body>
(5) </html>
1
2
3
4
5
Which of the following lines of code in html has invalid command?
(1) <title>Page Title</title>
(2) </head>
(3) <body>
(4) <h1 This is a Heading /h1>
(5) <p>This is a paragraph.</p>
1
2
3
4
5
Which of the following lines of code in html has invalid command?
(1) <h1> <This is heading> </h1>
(2) <a href="https://www.w3schools.com">This is a link</a>
(3) <p>This is a paragraph.</p>
(4) <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
1
2
3
4
Which of the following lines of code will successfully insert a command button in html?
(1) <button> <Click me> </button>
(2) </button> Click me </button>
(3) <button> Click me <\button>
(4) <button> Click me </button>
1
2
3
4
Which of the following lines of code in html has invalid command?
(1) <ul>
(2) <li>Coffee</li>
(3) <li>Tea</li>
(4) <li>Milk</li>
(5) <?/ul>
1
2
3
4
5
What will be the result when we use the following code in html?
<p> This subject <br> teaches me <br> html coding. </p>
This subject
teaches me
html coding
This subject teaches me html coding
This subject br teaches me br html coding
This subject <br> teaches me <br> html coding
What will be the result when we use the following code in html?
<body style=background-color:powderblue;>
background color will be changed in powderblue
text will be changed to powderblue
Nothing will happen because there is an error in the code
everything including text color will be changed powderblue
The text-align property defines the horizontal text alignment for an HTML element.
True
False
In the following code what represents the name "picture"?
<img src="c:/picture/img_girl.jpg">
folder name
drive name
filename
computer name
HTML links are defined with the <a> tag.
True
False
The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.
True
False
Which of the following lines of code in html has invalid command?
(1) <p>This is some text.</p>
(2) <hr>
(3) <h2>This is heading 2</h2>
(4) <p>This is some other text.</p>
(5) </hr>
1
2
3
4
5
Which of the following BEST explains the difference between a <p> tag and a <br> tag?
The <br> tag produces a blank line, while the <p> tag does not
The <p> tag produces a blank line, while the <br> tag does not
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
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">
What correction needs to be made in the code
line 13 - <p> </p> tags needed
line 13 - <li> </li> tags needed
line 13 - <h6> </h6> tags needed
line 13 <par> </par> tags needed
CSS stands for
Code Style Sheet
Coding Style Sheet
Cascading Sheet Style
Cascading Style Sheet
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;
}
