HTML Tags and Attributes Quiz

Create an account and save your quiz results

Login and save your results

OR

Question 1/15

What does the
charset
attribute in the
<meta>
tag specify?

Select your answer

Question 2/15

What is the correct HTML tag for creating a numbered list?

Select your answer

Question 3/15

Which of the following HTML elements is used for creating a hyperlink?

Select your answer

Question 4/15

How can you open a link in a new tab/browser window in HTML?

Select your answer

Question 5/15

Which HTML element can be used to display styled text in different sizes and colors?

Select your answer

Question 6/15

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

Select your answer

Question 7/15

Which HTML tag is used to define an internal style sheet?

Select your answer

Question 8/15

What does HTML stand for?

Select your answer

Question 9/15

Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

Select your answer

Question 10/15

What is the correct HTML for creating a text input field?

Select your answer

Question 11/15

In HTML, what does the
href
attribute in a link specify?

Select your answer

Question 12/15

Which HTML attribute is used to define inline styles?

Select your answer

Question 13/15

What is the correct HTML for making a checkbox?

Select your answer

Question 14/15

What is the correct HTML element for the largest heading?

Select your answer

Question 15/15

Which attribute specifies how form data should be encoded when submitted to a server?

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 the <pre><code>charset</code></pre> attribute in the <pre><code>&lt;meta&gt;</code></pre> tag specify?

Available answers

The
charset
attribute specifies the character encoding used by the HTML document, such as
UTF-8
.
Question 2/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 3/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 4/15
😊 Your answer was correct 🙁 Your answer was incorrect
How can you open a link in a new tab/browser window in HTML?

Available answers

The attribute
target="_blank"
specifies that the link will open in a new tab or window.
Question 5/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which HTML element can be used to display styled text in different sizes and colors?

Available answers

The
<span>
element is used for inline styling with CSS.
Question 6/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 7/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which HTML tag is used to define an internal style sheet?

Available answers

The
<style>
tag is used in HTML to include internal CSS.
Question 8/15
😊 Your answer was correct 🙁 Your answer was incorrect
What does HTML stand for?

Available answers

HTML stands for Hyper Text Markup Language.
Question 9/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 10/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 11/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 12/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which HTML attribute is used to define inline styles?

Available answers

The
style
attribute is used to apply inline CSS styles to an HTML element.
Question 13/15
😊 Your answer was correct 🙁 Your answer was incorrect
What is the correct HTML for making a checkbox?

Available answers

Use
<input type="checkbox">
to create a checkbox in HTML.
Question 14/15
😊 Your answer was correct 🙁 Your answer was incorrect
What is the correct HTML element for the largest heading?

Available answers

The
<h1>
tag defines the largest heading. Headings in HTML range from
<h1>
to
<h6>
, with
<h1>
being the largest and most important.
Question 15/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which attribute specifies how form data should be encoded when submitted to a server?

Available answers

The
enctype
attribute is used to specify how the form data should be encoded when submitting to the server.