HTML Tags and Attributes Quiz
Want to learn more than this quiz offers you? Have a look at my Frontend web
development courses.
Create an account and save your quiz results
Login and save your results
OR
Question 1/15
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
Select your answer
Question 2/15
What is the correct HTML element for inserting a line break?
Select your answer
Question 3/15
Which element is typically used to contain navigation links?
Select your answer
Question 4/15
What is the correct HTML for inserting an image?
Select your answer
Question 5/15
Which HTML element is self-closing?
Select your answer
Question 6/15
How can you make a list that lists its items with squares?
Select your answer
Question 7/15
What attribute is used to uniquely identify an HTML element?
Select your answer
Question 8/15
In HTML, what does the
href
attribute in a link specify?
Select your answer
Question 9/15
What is the correct HTML tag for creating a numbered list?
Select your answer
Question 10/15
Which of the following HTML elements is used for creating a hyperlink?
Select your answer
Question 11/15
Which HTML element is used to specify a term in a description or definition list?
Select your answer
Question 12/15
What is the correct HTML element for playing audio files?
Select your answer
Question 13/15
What is the correct HTML for creating a text input field?
Select your answer
Question 14/15
What does the
charset
attribute in the <meta>
tag specify?
Select your answer
Question 15/15
Which HTML element is used for italic text?
Select your answer
Your Results
You did not answer any questions correctly.
Your Answers
Question 1/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
Available answers
The
alt
attribute provides alternative text for an image if it cannot be displayed.
Question 2/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct HTML element for inserting a line break?
Available answers
The
<br>
element in HTML is used to insert a line break.
Question 3/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which element is typically used to contain navigation links?
Available answers
The
<nav>
element is used to group navigation links.
Question 4/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct HTML for inserting an image?
Available answers
The
<img>
tag is used to embed an image in an HTML page, with src
specifying the path to the image.
Question 5/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML element is self-closing?
Available answers
The
<br>
tag is a self-closing tag used to insert a single line break.
Question 6/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
How can you make a list that lists its items with squares?
Available answers
Use
list-style-type: square;
in the <ul>
style attribute to display items with square bullets.
Question 7/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What attribute is used to uniquely identify an HTML element?
Available answers
The
id
attribute is used to specify a unique identifier for an HTML element.
Question 8/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
In HTML, what does the <pre><code>href</code></pre> attribute in a link specify?
Available answers
The
href
attribute specifies the URL of the page the link goes to.
Question 9/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct HTML tag for creating a numbered list?
Available answers
The
<ol>
tag is used to create ordered (numbered) lists in HTML.
Question 10/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which of the following HTML elements is used for creating a hyperlink?
Available answers
The
<a>
tag is used to define hyperlinks in HTML.
Question 11/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML element is used to specify a term in a description or definition list?
Available answers
The
<dt>
tag is used to specify a term in a description list.
Question 12/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct HTML element for playing audio files?
Available answers
The
<audio>
element is used to embed sound content in documents.
Question 13/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct HTML for creating a text input field?
Available answers
The correct HTML for creating a text input is
<input type="text">
.
Question 14/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What does the <pre><code>charset</code></pre> attribute in the <pre><code><meta></code></pre> tag specify?
Available answers
The
charset
attribute specifies the character encoding used by the HTML document, such as UTF-8
.
Question 15/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML element is used for italic text?
Available answers
The
<i>
tag is used to create italic text.