12 Questions
What attribute specifies an alternate text for an image in HTML?
alt
Which attribute is used to define extra information about an HTML element?
title
When might single quotes be necessary in HTML attribute values?
When the value contains double quotes
Which tag defines the most important heading in HTML?
Which HTML element is used to define preformatted text?
What is the purpose of the `` element in an HTML document?
It specifies a title for the HTML page, which is shown in the browser's title bar or in the page's tab.
What does the CSS background-color property define for an HTML element?
Background color
What is the purpose of the <p>
element in an HTML document?
It defines a paragraph of text.
What is the purpose of the `` element in an HTML document?
It defines a large heading for the HTML page.
What is the purpose of the `` element in an HTML document?
It defines the document's body and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
What is the purpose of the `` element in an HTML document?
It is used to embed an image in an HTML page.
What is the purpose of the <a>
element in an HTML document?
It defines a hyperlink to another web page.
Test your knowledge of HTML basics with this quiz! Learn about the declaration for an HTML5 document, the root element, meta information, title element, body element, and more.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free