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 is the correct HTML element to define important text?
Select your answer
Question 2/15
Which attribute would you use to provide additional information about an HTML element?
Select your answer
Question 3/15
Which element is used for embedding a video in an HTML page?
Select your answer
Question 4/15
What is the function of
<input type="submit">
in HTML forms?
Select your answer
Question 5/15
Which HTML element is the largest heading?
Select your answer
Question 6/15
What HTML element is used to define lists within a dropdown menu?
Select your answer
Question 7/15
Which element is used to create a clickable button in HTML?
Select your answer
Question 8/15
Which HTML attribute is used to specify the size of an input field?
Select your answer
Question 9/15
What is the correct simple DOCTYPE declaration for an HTML5 document?
Select your answer
Question 10/15
Which element is used to create a line break in HTML?
Select your answer
Question 11/15
What is the purpose of the
<meta charset="UTF-8">
tag in HTML?
Select your answer
Question 12/15
How can you open a link in a new tab when using the
<a>
tag in HTML?
Select your answer
Question 13/15
What is the purpose of the
<style>
tag in HTML?
Select your answer
Question 14/15
Which tag is used to create a hyperlink in HTML?
Select your answer
Question 15/15
Which tag is used to insert an image in HTML?
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 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 2/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which attribute would you use to provide additional information about an HTML element?
Available answers
The
title
attribute is used to provide additional information. It typically appears as a tooltip when the mouse hovers over the element.
Question 3/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 4/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.
Question 5/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML element is the largest heading?
Available answers
The
<h1>
element is the largest heading in HTML, typically used for main titles.
Question 6/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What HTML element is used to define lists within a dropdown menu?
Available answers
The
<option>
element is used within the <select>
tag to specify the choices available in a dropdown menu.
Question 7/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 8/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which HTML attribute is used to specify the size of an input field?
Available answers
The
size
attribute is used in HTML to specify the visible width of an <input>
element.
Question 9/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 10/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 11/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 12/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
How can you open a link in a new tab when using the <pre><code><a></code></pre> tag in HTML?
Available answers
By using the
target="_blank"
attribute, you can instruct the browser to open the URL in a new tab or window.
Question 13/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the purpose of the <pre><code><style></code></pre> tag in HTML?
Available answers
The
<style>
tag is used to define CSS styles for an HTML document, allowing you to specify the look and formatting of the HTML content.
Question 14/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 15/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.