HTML Basics Quiz

Create an account and save your quiz results

Login and save your results

OR

Question 1/15

Which element is used for embedding a video in an HTML page?

Select your answer

Question 2/15

Which attribute is used to provide an alternate text for an image, if the image cannot be displayed?

Select your answer

Question 3/15

What is the correct simple DOCTYPE declaration for an HTML5 document?

Select your answer

Question 4/15

What is the correct HTML element for inserting a line separator?

Select your answer

Question 5/15

Which attribute would you use to provide additional information about an HTML element?

Select your answer

Question 6/15

Which HTML element is used to specify a table row?

Select your answer

Question 7/15

What is the purpose of the
<meta charset="UTF-8">
tag in HTML?

Select your answer

Question 8/15

Which of the following HTML tags is used to make text italic?

Select your answer

Question 9/15

What does HTML stand for?

Select your answer

Question 10/15

Which tag is used to insert an image in HTML?

Select your answer

Question 11/15

Which HTML element is used to represent a paragraph?

Select your answer

Question 12/15

What is the function of
<input type="submit">
in HTML forms?

Select your answer

Question 13/15

What is the correct HTML element to define important text?

Select your answer

Question 14/15

What is the purpose of the
<style>
tag in HTML?

Select your answer

Question 15/15

Which attribute is mandatory for the
<img>
tag?

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 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 2/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 3/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 4/15
😊 Your answer was correct 🙁 Your answer was incorrect
What is the correct HTML element for inserting a line separator?

Available answers

The
<hr>
element is used to define a thematic break in an HTML page, commonly displayed as a horizontal line.
Question 5/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 6/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 7/15
😊 Your answer was correct 🙁 Your answer was incorrect
What is the purpose of the <pre><code>&lt;meta charset="UTF-8"&gt;</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 8/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which of the following HTML tags is used to make text italic?

Available answers

The
<i>
tag is used to italicize text in HTML.
Question 9/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 10/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 11/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which HTML element is used to represent a paragraph?

Available answers

The
<p>
element is used to represent a paragraph in HTML.
Question 12/15
😊 Your answer was correct 🙁 Your answer was incorrect
What is the function of <pre><code>&lt;input type="submit"&gt;</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 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
What is the purpose of the <pre><code>&lt;style&gt;</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 15/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which attribute is mandatory for the <pre><code>&lt;img&gt;</code></pre> tag?

Available answers

The
src
attribute is mandatory for the
<img>
tag as it specifies the path to the image to be displayed.