HTML Attributes Quiz Form
Test your knowledge of HTML attributes in this real quiz. Answer all questions to the best of your ability.
Which attribute is used to provide alternative text for an image in HTML?
*
alt
src
title
href
Select all valid HTML global attributes.
*
id
class
style
srcset
onclick
What is the purpose of the 'placeholder' attribute in an input element?
*
Which attribute is required for the element to specify where to send form data?
*
action
method
target
enctype
Write the correct attribute to open a link in a new tab.
*
Select all attributes that can be used with the element.
*
type
value
readonly
checked
alt
How confident are you in your understanding of HTML attributes?
*
Not confident
1
2
3
4
Very confident
5
1 is Not confident, 5 is Very confident
Which attribute is used to specify a unique identifier for an HTML element?
*
id
name
class
data-id
Which HTML attribute is used to provide a tooltip for an element?
*
title
tooltip
alt
label
List any two Boolean attributes in HTML.
*
Submit Quiz
Should be Empty: