W3Schools HTML Elements and Attributes Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 8865 | Total Attempts: 106,055
| Questions: 20 | Updated: Aug 11, 2026
Please wait...
Question 1 / 21
🏆 Rank #--
0 %
0/100
Score 0/100

1. Which attribute specifies the URL of an external stylesheet in the element?

Submit
Please wait...
About This Quiz
W3Schools HTML Elements and Attributes Quiz - Quiz

Test your knowledge of HTML elements and attributes essential for web development. This quiz covers semantic HTML, form elements, global attributes, and best practices for structuring web pages. Perfect for college students preparing for W3Schools certifications or strengthening their foundational HTML skills.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. The element in HTML5 is used to represent dates and times. Does it require a 'datetime' attribute?

Submit

3. What is the purpose of the 'accept' attribute in a file input element?

Submit

4. Which attribute is used to specify the relationship between the current document and a linked resource?

Submit

5. The element is used to define the footer of a document. Can a document have multiple footers?

Submit

6. Which attribute specifies that an input field should automatically receive focus when the page loads?

Submit

7. The HTML5 element requires a closing tag and a fallback message. True or false?

Submit

8. What does the 'contenteditable' attribute allow users to do?

Submit

9. Which element represents a section of a document with related content, typically with a heading?

Submit

10. The element is used to define navigation links. Is it required to contain only main navigation?

Submit

11. Which HTML element is used to define the most important heading on a page?

Submit

12. What is the purpose of the element in HTML forms?

Submit

13. Which input type is specifically designed for entering email addresses with built-in validation?

Submit

14. The 'data-*' attribute is used for storing custom data. What does the asterisk represent?

Submit

15. Which semantic HTML5 element represents independent, self-contained content like blog posts or articles?

Submit

16. What does the 'required' attribute do in an HTML form input?

Submit

17. Which element is used to group form controls and apply a caption to the entire group?

Submit

18. The tag is used to provide metadata about an HTML document. Which attribute defines the character encoding?

Submit

19. Which attribute specifies the alternative text for an image if it cannot be displayed?

Submit

20. What is the correct syntax for creating a hyperlink in HTML?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which attribute specifies the URL of an external stylesheet in the ...
The element in HTML5 is used to represent dates and times. Does it...
What is the purpose of the 'accept' attribute in a file input element?
Which attribute is used to specify the relationship between the...
The element is used to define the footer of a document. Can a...
Which attribute specifies that an input field should automatically...
The HTML5 element requires a closing tag and a fallback message. True...
What does the 'contenteditable' attribute allow users to do?
Which element represents a section of a document with related content,...
The element is used to define navigation links. Is it required to...
Which HTML element is used to define the most important heading on a...
What is the purpose of the element in HTML forms?
Which input type is specifically designed for entering email addresses...
The 'data-*' attribute is used for storing custom data. What does the...
Which semantic HTML5 element represents independent, self-contained...
What does the 'required' attribute do in an HTML form input?
Which element is used to group form controls and apply a caption to...
The tag is used to provide metadata about an HTML document. Which...
Which attribute specifies the alternative text for an image if it...
What is the correct syntax for creating a hyperlink in HTML?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!