Font size
WorksheetsHTML / CSS Test
Total questions: 111
Worksheet time: 3hrs 56mins
What is the difference between an HTML Tag and an HTML element?
An HTML Tag is case sensitive and an HTML element is not case sensitive.
An HTML Tag is always paired and an HTML element is an "empty" tag.
An HTML Tag defines content and an HTML Element includes the opening and closing tags and everything in between.
An HTML Tag defines content and an HTML Element gives additional meaning and content.
Karen wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
<li>
<h1>
<hr>
<br>
Jerry wants to insert a line break into his webpage. Which code should he use?
<ul>
<li>
<br>
<h1>
Which item refers to the start tag, the end tag and everything in between?
HTML Element
HTML Tag
HTML Attribute
CSS
What is the proper code to insert an image named "frog.jpg"?
<img src="frog" width="104" height="142">
<img="frog.jpg" width="104" height="142">
<img src="frog.jpg" width="104" height="142">
<img ="frog" width="104" height"142">
Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines
the main heading in a web document?
<h3>Product</h3>
<h5>Product</h5>
<h1>Product</h1>
<h6>Product</h6>
Which tag defines the visible content of a web document?
<head>
<meta>
<title>
<body>
What tag defines the beginning of a webpage?
<html>
<h1>
<p>
<body>
A properly coded HTML tag will always be found between which two symbols?
( )
{ }
[ ]
< >
When using a text editor, what file extension(s) must be used when saving as a web document?
txt
html or htm
doc
css
Which line of code correctly places a gif image named "tiger" into a webpage?
<img src="tiger" alt="BengalTiger" />
<img gif=tiger alt="BengalTiger">
<image source="tiger.gif" alt=BengalTiger" />
<img src="tiger.gif" alt="BengalTiger" />
Which line of code correctly creates a link to Amazon's website?
<a ref=http://www.amazon.com>Amazon
<href=http://www.amazon.com>Amazon<a>
<a href="http://www.amazon.com">Amazon
<a href="http://www.amazon.com">Amazon</a>
Between which paired tags would the visible content of a webpage be displayed?
<html></html>
<head></head>
<body></body>
<title></title>
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
HTML tag keywords are surrounded by
!--tag--!
<tag>
/tag/
{tag}
Which is the correct CSS syntax?
body {color: yellow;}
body:color=yellow;
{body:color= yellow;}
{body;color: yellow;}
Which one is the correct syntax for CSS?
property {selector : value}
value {property : selector}
selector {value : property}
selector { property : value}
Which of the following is NOT a function of the <title> </title> element?
Defines a title in the browser tab.
Provides a title for the page when added to favorites/bookmarks
Creates the first heading on the index page of the website
Displays a title for the page in search engine results
http://www.google.com is an example of a what?
URL
IP address
Browser
Application
Where is the paragraph tag?
The special set of characters that indicates the start and end of an HTML element and that element's type (a)
HTML Tag
HTML Element
What is this symbol(s) called: <>
A tag
A weird triangle thing
a paragraph
a code
What is this symbol(s) called: </>
A closing tag
A square
An opening tag
An arrow
Body tags are used;
Used for only the header
Used only for the paragraph
element that wraps everything that is visible on the page.
Not used in HTML
Select all the closing tags:
<p>
</h1>
</li>
<ol>
</ul>
The ____ tag creates a paragraph.
<p>
<par>
<para>
<pr>
Heading
Smallest Heading Tag
A title or summary for a document or section of a document.
This tag helps create a list. and must be contained inside either the <ul> or <ol> tags.
Any character that shows up as a blank space on the screen, such as a space, a tab, or a new line; helps separate different parts of the document to make it easier to read
HTML coding involves using ____________ to create webpages.
elements
symbols
commands
tags
Which is the closing tag for a paragraph?
<p>
</p>
The address of a document or other file accessible on the Internet
URL
HTML
CSS
Browser
What does HTML stand for?
Hypertext Markup Language
Hypertext Makeup Language
Hypotext Markup Language
Hypertext Mist Language
Web pages are divided into two main sections
Head and Title
Title and Paragraph
Head and Body
Begin and End
Which is the opening tag for an html document?
<html/>
html>
</html>
<html>
How many heading are there?
5
6
4
3
Which is the italics tag?
<i><i>
</i><i>
<i></>
<i></i>
Placing of one set of tags inside another is?
Nesting
Stand Alone Tags
Every HTML document must have the following
html,head,title,body
html,body,paragraph,end
head,body,title
head and body
What do you call a program that interprets HTML?
Webpage
Website
Web browser
Web
What do you call a document that can be accessed through the world wide web?
Webpage
Website
Web browser
Web search engine
Group of webpages is called _____.
Website
Web browser
Web Search engine
None of the above
<p> </p>
paragraph tags
heading tags
hyperlink
picture tag
The <body> contains everything that is displayed on the webpage.
True
False
The LAST tag on a HTML document
</body>
<html>
</html>
None on the above
</body>
Opening Body tag
Paragraph tag
Closing body tag
Header tag
The correct way to write an h1 tag
<h1>Hello</h1>
<h1>"Hello
{h1}Hello{/h1}
<h1>Hello<h1>
Inserts a line break
<hr>
<br>
<ol> </ol>
<li> </li>
<title>The 90s</title>
<h1>The 90s</h1>
<head>The 90s</head>
<li>The 90s</li>
<h1>The 90s</h1>
<p>The 90s</p>
<body>The 90s</body>
<html>The 90s</html>
Welcome to Mr. Anderson's Website
<h1>Welcome to Mr. Anderson's Website</h1>
<Welcome to Mr. Anderson's Website>
<title>Welcome to Mr. Anderson's Website</title>
Which of the following is the largest heading tag?
<h1>
<h3>
<h5>
<h6>
What is the correct HTML for adding a background color?
<body bgcolor=pink>
<background color=pink>
<body bgcolour=pink>
<background bg=Pink>
Which character is used to indicate an end tag?
~
/
*
<
HTML comments start with <!-- and end with -->
True
False
Which HTML attribute contains the address or location of an image?
alt
title
src
longdesc
What is wrong with the following html code?
<html>
<head><title></title></head>
<body>
</html>
Nothing is wrong with the HTML code
Missing opening body
Missing closing body
Missing the title text
The ______ declaration defines that this document is an HTML5 document
<head>
<!DOCTYPE html>
<body>
<html>
What element to use when you wanted your text to appear as deleted text
<em>
<del>
<ins>
<erase>
What HTML element that defines text that should be highlighted.
<del>
<ins>
<mark>
<strong>
The HTML _________ element to used to text, where the browser will usually underline the inserted text.
<ins>
<mark>
<MARQUEE> tag is used to
Underline text
scrolling text
Mark text
Attributes of font
colour
color
face
style
size
Which HTML tag is used to create subscript text?
<sup>
<sub>
<subscript>
<down>
Which container element is used to physically make the text size smaller and move it up?
< (a) >
What editing element would being used to make the word milk appear as it is in the image?
< (a) >
What element would be used to make the number 2 appear as it is in the image?
< (a) >
What element would be used to make the letters st appear as they do in the image?
< (a) >
What editing element would being used to make blue appear as it is in the image?
< (a) >
Which container element is used to make text slant to the right for formatting purposes only?
< (a) >
"src" stands for _________.
source
sound
scroll
scrouse
Select the right format for ending tag:
<\html>
<html/>
</html>
<|html>
Which is the correct line of code?
<p></p>This is a paragraph
This is a paragraph<p></p>
<p>This is a paragraph</p>
</p>This is a paragraph<p>
What tag do you use to make a numbered list?
<list>
<ol>
<li>
<ul>
TRUE OR FALSE: HTML is used to structure content on a web page.
True
False
Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines the main(largest) heading in a web document?
Between which paired tags would the visible content of a web page be displayed? Another word, where should you type in ALL your HTML code in the Web Lab on code.org?
Which one is the smallest heading?
h1
h2
h4
h6
All HTML Tags are enclosed in _______
# and #
< and >
? and !
{ and }
There are ____ levels of headings we can use in HTML.
4
5
6
7
What is the first tag that you put in a html document?
<head>
<header>
<DOCTYPE html>
<!DOCTYPE html>
Which of the following is the last tag in an html document?
</end>
</footer>
</body>
</html>
The ____ tag creates a paragraph.
<p>
<par>
<para>
<pr>
Which character is used to create an end or closing tag?
*
/
<
^
Order the following headers from the BIGGEST to the SMALLEST.
h1
h2
h3
h4
h5
The content of a webpage is the text, images and any other elements include between the body tags.
True
False
HTML coding involves using ____________ to create webpages.
elements
symbols
commands
tags
The very first line of an HTML web page is
<html>
<body>
<!DOCTYPE>
<p>
This tag is placed right under the <!DOCTYPE> tag.
<html>
<head>
<body>
<p>
The closing html tag </html> is all the way at the bottom of the file (the last line)
True
False
Mr. Brobst told the class not to put any content inside the <head></head> tags
True
False
You can only use one set of paragraph tags <p> </p> in a web page file.
True
False
There is only one <body> element in an HTML document.
True
False
What tag holds all the contents of a web page that you want a user to see (text, images, videos, etc.)?
<head>
<body>
<p>
<title>
What tag is used to define a paragraph of text?
<head>
<body>
<p>
<title>
What language is used to create web pages?
HTML
BASIC
Fortran
Pascal
What is a way to look at the code that makes up a web page (We did this in class on Wednesday)
Buy expensive software that lets you see the code
Ask ChatGPT
It is impossible to view the code
Right-click and select "View page source"
What does HTML stand for?
What does CSS stand for?
What does <h> mean in html?
What does <p> mean in HTML?
How would you add a border of 1 pixel solid black to an image?
What is the correct tag for a second level heading?
<h2>
<h1>
<h3>
<h4>
Which displays an image on the webpage?
<img>
<image>
<i>
<imge>
Which HTML tag is used to create a numbered list?
<ul>
<ol>
<li>
<dl>
Which attribute is used to specify the URL of a linked resource in an <a> tag?
src
href
link
ref
What is the purpose of the <title> tag in an HTML document?
To create a special type of list item
To define the title of a table
To specify the title of the document, shown in the browser's title bar or tab
To create a section heading
What is your Top school of choice? What is their website? What is their physical address? What is their admission office phone number? What is their financial aid office phone number?
