WorksheetsHTML Quiz
Total questions: 70
Worksheet time: 38mins
What is HTML?
A programming language for creating software
A markup language for creating web pages
A database management system
A graphic design tool
What is the first step in creating a new HTML file?
Write the CSS code
Design the layout in Photoshop
Enter the basic HTML structure
Install a web server
What does HTML stand for?
Hypertext Markup Language
Hightext Machine Language
Hyperlink and Text Markup Language
Hypertext Machine Language
Which of the following is a part of an HTML document?
Header
Footer
Body
All of the above
What is the primary purpose of HTML tags?
To style the webpage
To structure the content
To store data
To create animations
What is the World Wide Web (WWW)?
A collection of books in a library
A huge collection of websites accessible via the Internet
A type of computer software
A programming language
How do we navigate between web pages on a website?
By using bookmarks
By using hyperlinks
By using search engines
By using email links
What types of information can web pages contain?
Only text
Only images
Images, text, and multimedia
Only multimedia
Where are websites stored?
On a single central server
On web servers all over the world
On personal computers
In a central database
Is there a central storage for websites?
Yes, all websites are stored centrally
No, there is no central storage of websites
Yes, but only for large websites
No, they are stored on personal devices
What is the first step when you view a web page?
Your Computer sends a request to the Website Host/Server
Your Computer sends a request to Your ISP
Your ISP sends a request to the Internet
The Internet sends a request to Your Computer
What role does the Internet play in viewing a web page?
It stores the web page content
It connects Your ISP to the Website Host/Server
It sends the web page directly to Your Computer
It acts as a backup for Your ISP
What does HTML stand for?
HyperText Markup Language
Hyperlink Text Markup Language
HighText Machine Language
HyperText Machine Language
What is the primary purpose of HTML?
To style web pages
To describe the content in web pages
To program web applications
To store data in databases
What is the main purpose of the Yahoo! website as shown in the image?
To provide email services
To offer online shopping
To serve as a search engine and news portal
To host social media interactions
Which menu option is visible in the browser settings in the image?
Privacy settings
Bookmarks and lists
Language preferences
Security settings
What keyboard shortcut can you use to view the HTML code behind a web page?
Ctrl + S
Ctrl + U
Ctrl + P
Ctrl + C
What is the purpose of the declaration in an HTML document?
It links to a CSS file
It specifies the document type and version of HTML
It adds a comment to the code
It creates a new HTML element
What is HTML primarily used for?
Creating mobile apps
Writing and creating websites
Designing video games
Developing operating systems
What do internet browsers do with HTML?
Delete the code
Print the code
Translate the code into web pages
Encrypt the code
What is HTML made up of?
Numbers and equations
Images and videos
Text and tags
Music and sounds
What are tags used for in a web browser?
To create images
To show content on a web page
To store data
To design graphics
How are tags written?
With square brackets
With curly braces
With special characters
With quotation marks
What do tags start and end with?
Square brackets
Curly braces
Triangle brackets
Quotation marks
What does the extra '/' in a tag indicate?
The start of a new section
The end of the title
The beginning of a paragraph
The start of a list
How is HTML similar to a human skeleton?
It provides energy to the web page.
It supports and makes up the structure of a web page.
It adds style and design to the web page.
It is responsible for the web page's content.
Why is HTML considered the starting point for all web pages?
It is the most colorful part of a web page.
It is the final step in web development.
It provides the basic structure needed for further development.
It is used for creating databases.
What are the two main parts of the HTML structure?
A) Header and Footer
B) Head and Body
C) Title and Content
D) Top and Bottom
Which HTML tag is used to define the head section?
A) <header>
B) <head>
C) <body>
D) <html>
Which HTML tag is used to define the body section?
A) <ol>
B) <head>
C) <body>
D) <html>
What is the purpose of the <title> tag?
To create a paragraph
To add a comment
To specify the title of the webpage
To define the main content
What is the function of the <h1> tag in HTML?
To create the smallest heading
To add a comment
To create the biggest heading
To split paragraphs
What is the purpose of the <!-- --> tag in HTML?
To create a heading
To add a comment that is not visible on the website
To define the title
To split paragraphs
What tool do you need to use to write code and try making a website?
Text editor
HTML editor
Spreadsheet
Presentation software
Which website is recommended for writing HTML code and seeing a live version of your website?
www.example.com
www.learnhtml.com
www.programiz.com/html/online-compiler/
www.codeeditor.com
What is the purpose of the <title>?
To display the main heading on the webpage
To set the title of the webpage in the browser tab
To create a paragraph on the webpage
To add a hyperlink to the webpage
Which HTML tag is used to define the main heading of a webpage?
<h2>
<h3>
<h1>
<header>
What does the <p> tag represent in an HTML document?
A paragraph
A heading
A title
A hyperlink
Which HTML tag is used to define the title of a webpage?
<h1>
<title>
<head>
<body>
What is the purpose of the <strong> tag in HTML?
To create a hyperlink
To italicize text
To make text bold
To underline text
Which tag is used to create a paragraph in HTML?
<br>
<paragraph>
<p>
<tab>
What does the <h1> tag represent in HTML?
A hyperlink
A heading
A paragraph
A list
How many lines of code were used in a quick play example?
12
50
100
698
Approximately how many lines of code were needed to build the Google homepage?
50
100
698
12
What is one characteristic of HTML webpages mentioned in the text?
They use only a few tags.
They have thousands of tags available.
They are built with 698 lines of code.
They require no coding.
All content that will be visible in a web page must be added between these tags:
<html> </html>
<head> </head>
<p> </p>
<body> </body>
The largest size heading tag - often used to create the main heading of a web page - is ____ .
<h1> </h1>
<h2> </h2>
<h5> </h5>
<h6> </h6>
Which of these is the correct way to start a tag?
<H1>
</H1>
<H!>
</H/>
Which is the correct way to end a tag?
<body>
</body/>
<'body'>
</body>
Type the character that is in the closing tag of a tag pair, but not in the starting tag.
/
\
@
|
Which of the following creates the smallest header?
<h1></h1>
<h2></h2>
<h5></h5>
<h6></h6>
Which is the correct HTML tag for creating an unordered list?
<ul>
<ol>
<li>
<ulist>
This coding is used to create a paragraph:
<pr></pr>
<paragraph></paragraph>
<p><p>
<p></p>
What tag adds an image to the page?
<image>
<pic>
<img>
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.
How can you make a list that has no particular order?
<ol> </ol>
<ul> </ul>
<ol> <li>
<li> </ul
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>
What is the function of the
tag in an HTML document?To create a footer section
To define the navigation menu
To contain metadata and links to scripts and stylesheets
To display the main content of the webpage
Which tag is used to create a hyperlink in HTML?
<url>
<href>
<a>
<link>
What is the purpose of the tag in HTML?
To display an image on the webpage
To define a section of the webpage
To add a comment in the code
To create a link to another webpage
What is the purpose of the <img> tag in HTML?
To make text bold
To display images
To create a hyperlink
To create a list
Which tag is used to create an unordered list in HTML?
<ul>
<ol>
<list>
<li>
What does the <footer> tag represent in an HTML document?
The navigation links
The header of the page
The bottom section of the page
The main content of the page
What is the function of the <meta> tag in an HTML document?
To link external stylesheets
To embed images
To provide metadata about the HTML document
To create a navigation menu
Which of the following tags is used to create a list in HTML?
<item>
<ul>
<ol>
<list>
What does the <img> tag require to display an image?
Both src and alt attributes
Only the title attribute
The src attribute
Only the alt attribute
Which HTML tag is used to create a hyperlink?
<href>
<a>
<link>
<url>
What does the <img> tag do in an HTML document?
It adds a comment
It creates a link to another page
It displays an image on the webpage
It defines a table
Which of the following is NOT a valid HTML element?
<span>
<div>
<text>
<section>
What is the function of the <img> tag in HTML?
To define a list
To display images on a webpage
To add comments
To create a hyperlink
