HTML Basics 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
What does HTML stand for?
Select your answer
Question 2/15
Which element is used for embedding a video in an HTML page?
Select your answer
Question 3/15
Which tag is used to create a hyperlink in HTML?
Select your answer
Question 4/15
What's the primary HTML element used for writing bold text?
Select your answer
Question 5/15
Which element is used to create a clickable button in HTML?
Select your answer
Question 6/15
Which element is used to create a line break in HTML?
Select your answer
Question 7/15
Which tag is used to insert an image in HTML?
Select your answer
Question 8/15
Which HTML element is used to specify a table row?
Select your answer
Question 9/15
Which HTML attribute is used to specify inline CSS?
Select your answer
Question 10/15
What is the purpose of the
<meta charset="UTF-8">
tag in HTML?
Select your answer
Question 11/15
Which element is used to define emphasized text in HTML?
Select your answer
Question 12/15
What is the correct simple DOCTYPE declaration for an HTML5 document?
Select your answer
Question 13/15
What is the correct HTML element to define important text?
Select your answer
Question 14/15
Which attribute is used to provide an alternate text for an image, if the image cannot be displayed?
Select your answer
Question 15/15
What is the function of
<input type="submit">
in HTML forms?
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
What does HTML stand for?
Available answers
HTML stands for Hypertext Markup Language, which is the standard language for creating web pages.
Question 2/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which element is used for embedding a video in an HTML page?
Available answers
The
<video>
tag is used to embed video content in an HTML page, supporting multiple video formats.
Question 3/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which tag is used to create a hyperlink in HTML?
Available answers
The
<a>
tag, known as the anchor tag, is used to create hyperlinks in HTML.
Question 4/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What's the primary HTML element used for writing bold text?
Available answers
The
<b>
tag is primarily used to make the text bold. While <strong>
also makes text bold, it has additional semantic meaning.
Question 5/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which element is used to create a clickable button in HTML?
Available answers
The
<button>
element is used to create clickable buttons within an HTML form or document.
Question 6/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which element is used to create a line break in HTML?
Available answers
The
<br>
element is used to create a line break in HTML, effectively breaking the line at that point in the text.
Question 7/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which tag is used to insert an image in HTML?
Available answers
The
<img>
tag is used in HTML to embed images in web pages.
Question 8/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML element is used to specify a table row?
Available answers
The
<tr>
element is used to define a row within a table in HTML.
Question 9/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML attribute is used to specify inline CSS?
Available answers
The
style
attribute is used to apply inline CSS to an element directly in HTML.
Question 10/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the purpose of the <pre><code><meta charset="UTF-8"></code></pre> tag in HTML?
Available answers
The
<meta charset="UTF-8">
tag sets the character encoding for the HTML document to UTF-8, which is a Unicode character set that can represent every character in every language.
Question 11/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which element is used to define emphasized text in HTML?
Available answers
The
<em>
tag is used to define emphasized text, providing semantic emphasis usually displayed in italic.
Question 12/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct simple DOCTYPE declaration for an HTML5 document?
Available answers
The correct DOCTYPE declaration for HTML5 is
<!DOCTYPE html>
, which is simple and universal.
Question 13/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct HTML element to define important text?
Available answers
The
<strong>
element is used to define important text, which is typically displayed in bold and implies strong importance.
Question 14/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which attribute is used to provide an alternate text for an image, if the image cannot be displayed?
Available answers
The
alt
attribute specifies the alternate text for an image if it cannot be displayed. It is used for accessibility and SEO purposes.
Question 15/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the function of <pre><code><input type="submit"></code></pre> in HTML forms?
Available answers
An
<input type="submit">
serves as a button a user can click to submit a form to the server for processing.