HTML Tags and Attributes Quiz

Create an account and save your quiz results

Login and save your results

OR

Question 1/15

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

Select your answer

Question 2/15

Which HTML tag is used to define a table?

Select your answer

Question 3/15

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

Select your answer

Question 4/15

What is the correct HTML for inserting an image?

Select your answer

Question 5/15

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

Select your answer

Question 6/15

How do you write comments in HTML?

Select your answer

Question 7/15

Which HTML element is used to specify a term in a description or definition list?

Select your answer

Question 8/15

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

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 does the
charset
attribute in the
<meta>
tag specify?

Select your answer

Question 11/15

What attribute is used to uniquely identify an HTML element?

Select your answer

Question 12/15

Which HTML element is used to create a dropdown list?

Select your answer

Question 13/15

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

Select your answer

Question 14/15

What does HTML stand for?

Select your answer

Question 15/15

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

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 tag is used to define an internal style sheet?

Available answers

The
<style>
tag is used in HTML to include internal CSS.
Question 2/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which HTML tag is used to define a table?

Available answers

The
<table>
tag is used to create tables 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
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 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.
Question 6/15
😊 Your answer was correct 🙁 Your answer was incorrect
How do you write comments in HTML?

Available answers

HTML comments are written with
<!-- and -->
.
Question 7/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 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
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 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 11/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 12/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which HTML element is used to create a dropdown list?

Available answers

The
<select>
element is used to create drop-down lists in HTML.
Question 13/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 14/15
😊 Your answer was correct 🙁 Your answer was incorrect
What does HTML stand for?

Available answers

HTML stands for Hyper Text Markup Language.
Question 15/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">
.