NEW
Font size
WorksheetsHTML Basics Quiz
Total questions: 32
Worksheet time: 32mins
What does HTML stand for?
Hyperlinks and Text Markup Language
Home Tool Markup Language
Hyper Text Markup Language
Hyperlinking Text Marking Language
Which attribute is used to specify a unique identifier for an HTML element?
class
id
name
style
What is the purpose of the
To define the main heading
To specify the document's title in the browser's title bar
To create a tooltip
To link to external stylesheets
Which attribute is used to provide alternative text for an image?
alt
src
title
href
Which HTML attribute specifies an inline CSS style for an element?
class
id
style
css
Which attribute is used to specify the URL of a linked page?
src
href
link
url
What does the
tag represent in HTML?
A line break
A horizontal rule
A heading
A paragraph
Which of the following is the correct way to define an image in HTML?

What does the href attribute in the tag specify?
The background color of a link
The URL of the linked page
The font size of the link
The alignment of the link
Which of the following is correct about the tag?
It is placed inside the
tagIt is used for search engine optimization (SEO)
It is mandatory in all HTML documents
It creates a link to external CSS
What will happen if you place an image tag without the alt attribute?
The browser will display an error
The image may not be accessible for visually impaired users
The image will not load
The image will automatically get a default description
How do you create a hyperlink to an email address in HTML?
What will Click Here do in an HTML page?
Redirect to the homepage
Navigate to an empty link
Open an external website
Create a broken link
How can you apply styles directly to an HTML element?
Using the style attribute
Using the class attribute
Using the id attribute
Using the script tag
What happens if you place multiple
The first
The browser crashes
All
The last
What will happen if you forget to close an HTML paragraph tag
?
The browser will generate an error
The page will not load
The browser will automatically close the paragraph
The text will not be displayed
Why is it important to use the alt attribute in tags?
It improves search engine rankings
It provides accessibility for visually impaired users
It helps if the image fails to load
All of the above
If an HTML document has multiple
headings, how does it affect SEO?
It improves SEO ranking
It can confuse search engines and affect readability
It has no impact on SEO
Search engines ignore
tags
How does the tag affect an HTML document?
It specifies the character encoding for the document
It defines a default font
It applies CSS styling
It has no impact on the document
What is the purpose of the
section in an HTML document?To define the main content of the page
To store metadata, links, and scripts
To display headings
To create a footer for the page
How does using semantic HTML elements benefit website development?
It makes the website look more visually appealing
It improves accessibility, SEO, and code readability
It reduces the need for CSS
It has no real advantage
If a developer wants to create a webpage with multiple sections, each with its own styles, which approach should be used?
Use multiple
Use multiple
elementsPlace everything inside a single
tagUse only inline styles for each element
How would you structure a web page to ensure the best SEO ranking?
Use multiple
headings
Properly nest headings
to , use semantic elements, and add meta descriptions
Use
Avoid using
Which of the following is not a valid reason to use semantic HTML elements?
Improved SEO
Enhanced accessibility
Better styling control
Faster browser rendering
A developer argues that using only
Semantic elements provide better meaning and structure to search engines and assistive technologies
Using
A company website has
used multiple times on the same page. How might this impact the website's usability and SEO?
It improves the SEO ranking
It helps users find important information faster
It can make the page structure unclear for search engines and screen readers
It has no effect on SEO
Which HTML element is used to define a paragraph?
<ph>
<p>
<para>
<pg>
What is the correct HTML element for inserting a line break?
break
<br>
<b>
<rb>
Which HTML element is used to define a hyperlink?
<a>
<link>
<href>
<hyperlink>
Which HTML element is used to define a list of items?
<list>
<ol>
<li>
<ul>
What is the purpose of the
To define the main content of the page
To provide information about the author or copyright
To create a navigation menu
To display images
Which attribute is used to specify the target of a hyperlink?
target
url
link
href
