HTML Quiz: Multiple Choice Questions

Reviewed by Samy Boulos
Samy Boulos, MSc (Computer Science) |
Data Engineer
Review Board Member
Samy Boulos is an experienced Technology Consultant with a diverse 25-year career encompassing software development, data migration, integration, technical support, and cloud computing. He leverages his technical expertise and strategic mindset to solve complex IT challenges, delivering efficient and innovative solutions to clients.
, MSc (Computer Science)
Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Sohaver
S
Sohaver
Community Contributor
Quizzes Created: 2 | Total Attempts: 21,955
Questions: 15 | Attempts: 21,829

SettingsSettingsSettings
HTML Quiz: Multiple Choice Questions - Quiz

Are you into web technology, or have you just started to learn its basics? Here, we have a simple HTML multiple-choice quiz for you to check your knowledge regarding this language. HTML is a standup markup language used for designing web pages and applications. It's an easy language to learn and can help you create your own website. This quiz is all about HTML and has 15 questions, and you will be tested on your basic understanding of the same. Good luck!


Questions and Answers
  • 1. 

    Who sets Web Standards?

    • A.

      Mozilla

    • B.

      Microsoft

    • C.

      Apple

    • D.

      The World Wide Web Consortium

    Correct Answer
    D. The World Wide Web Consortium
    Explanation
    The World Wide Web Consortium (W3C) is responsible for making the web standards. W3C is an international community that develops open standards to ensure the long-term growth of the web. It consists of member organizations, including individuals and companies, who collaborate to create and maintain these standards. W3C's goal is to make the web accessible, interoperable, and usable for everyone. Mozilla, Microsoft, and Apple are all important contributors to web technologies, but the ultimate authority for establishing web standards lies with the World Wide Web Consortium.

    Rate this question:

  • 2. 

    What does HTML stand for?

    • A.

      HyperText Markup Language

    • B.

      Hyperlinks and Text Markup Language

    • C.

      Home Tool Markup Language

    • D.

      Home and Text Makeup Language

    Correct Answer
    A. HyperText Markup Language
    Explanation
    HTML stands for Hyper Text Markup Language. It is the standard markup language used for creating web pages and applications. HTML uses markup tags to structure the content and define the layout of a web page. Hyperlinks can be added to connect different web pages together. HTML is not related to home tools or text makeup.

    Rate this question:

  • 3. 

    What is the correct sequence of HTML tags for starting a webpage?

    • A.

      Head, Title, HTML

    • B.

      Title, Head, HTML

    • C.

      HTML, Head, Title

    • D.

      All of these

    Correct Answer
    C. HTML, Head, Title
    Explanation
    The correct sequence of HTML tags for starting a webpage is HTML, Head, Title. This is because the HTML tag is the root element that defines the beginning and end of an HTML document. The Head tag is used to contain meta-information about the document, such as the title, character encoding, and linked stylesheets. Finally, the Title tag is used to specify the title of the webpage, which is displayed in the browser's title bar or tab.

    Rate this question:

  • 4. 

    Choose the correct HTML tag for the largest heading.

    • A.

      H1

    • B.

      Heading

    • C.

      Head

    • D.

      H6

    Correct Answer
    A. H1
    Explanation
    The correct HTML tag for the largest heading is H1. This tag is used to define the main heading of a webpage or section, and it is typically displayed in a larger font size compared to other headings. The H1 tag carries the highest level of importance in terms of hierarchy and is usually used only once per webpage.

    Rate this question:

  • 5. 

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

    • A.

      Br

    • B.

      Break

    • C.

      Lb

    • D.

      Break/br/

    Correct Answer
    A. Br
    Explanation
    The correct HTML tag for inserting a line break is "br". This tag is a self-closing tag, meaning it does not require a closing tag. It is used to create a line break or a new line in the text.

    Rate this question:

  • 6. 

    What is the correct HTML for adding a background color?

    • A.

      Body style="background color: yellow"

    • B.

      Background yellow /background

    • C.

      <body style="background-color: yellow;">

    • D.

      All of these

    Correct Answer
    C. <body style="background-color: yellow;">
    Explanation
    In HTML, you can set the background color for an element, such as the <body> element, using inline CSS (Cascading Style Sheets). The correct way to do this is by using the style attribute to define the background color.

    <body>: This is the HTML element that represents the body of a web page.

    style="background-color: yellow;": This is an inline CSS style defined for the <body> element. It specifies the background color property, which is set to "yellow."

    This code will make the background of the entire web page (the body) appear in the color yellow.
    So, this HTML code correctly sets the background color of the <body> element to yellow, and it's the standard and recommended way to apply styling to HTML elements using inline CSS.
     block in the head of the HTML document. The background-color property in CSS defines the background color of an element. The background-color property can accept color names, like yellow, hex color codes, RGB values, RGBA values, etc.
    So, when you write , you’re setting the background color of the  element (which is essentially your web page) to yellow.

    Rate this question:

  • 7. 

    Choose the correct HTML tag to make text bold?

    • A.

      Bold

    • B.

      B

    • C.

      Bld

    • D.

      Bl

    Correct Answer
    B. B
    Explanation
    The correct HTML tag to make text bold is "b". This tag is used to apply bold formatting to the text enclosed within it.

    Rate this question:

  • 8. 

    Choose the correct HTML tag to make the text italic.

    • A.

      Italic

    • B.

      It

    • C.

      I

    • D.

      Ii

    Correct Answer
    C. I
    Explanation
    The correct HTML tag to make the text italic is "i". This tag is used to apply the italic style to the enclosed text.

    Rate this question:

  • 9. 

    What is the correct HTML for creating a hyperlink? (note: Where you see a big space, that is where a bracket should be.)

    • A.

      A url="http://www.google.com" Google.com /a

    • B.

      A http://www.google.com /a

    • C.

      A href="http://www.google.com" Google /a

    • D.

      A name="http://www.google.com" Google.com /a

    Correct Answer
    C. A href="http://www.google.com" Google /a
    Explanation
    The correct HTML for creating a hyperlink is "a href="http://www.google.com" Google /a". This code uses the "a" tag to create a link, and the "href" attribute specifies the URL that the link should point to. The link text "Google" is displayed to the user, and when clicked, it will take them to the specified URL "http://www.google.com".

    Rate this question:

  • 10. 

    How can you create an email link?

    • A.

      A href="mailto:xxx@yyy"

    • B.

      A href="xxx@yyy"

    • C.

      Mail>xxx@yyy

    • D.

      Mail href="xxx@yyy"

    Correct Answer
    A. A href="mailto:xxx@yyy"
    Explanation
    To create an email link, the correct format is "a href="mailto:xxx@yyy"". The "a" tag is used to create a link, and the "mailto:xxx@yyy" specifies the email address that the link will open when clicked. This format ensures that when the link is clicked, it will open the user's default email client with the specified email address pre-filled in the recipient field.

    Rate this question:

  • 11. 

    How can you make a list that lists the items with numbers?

    • A.

      Ol

    • B.

      Dl

    • C.

      Ul

    • D.

      List

    Correct Answer
    A. Ol
    Explanation
    To make a list that lists the items with numbers, you can use the "ol" tag. This is the HTML tag for an ordered list, which automatically numbers each item in the list. By using the "ol" tag, you can create a numbered list of items.

    Rate this question:

  • 12. 

    How can you make a list that lists the items with bullets?

    • A.

      Dl

    • B.

      Ul

    • C.

      Ol

    • D.

      List

    Correct Answer
    B. Ul
    Explanation
    The correct answer is "ul". In HTML, "ul" stands for an unordered list, which is a list that displays items with bullets. It is used to create a bulleted list where each item is preceded by a bullet point.

    Rate this question:

  • 13. 

    What is the correct HTML for inserting an image?

    • A.

      Img href="image.gif /

    • B.

      Img src="image.gif" /

    • C.

      Image src="image.gif" /

    • D.

      Img>image.gif

    Correct Answer
    B. Img src="image.gif" /
    Explanation
    The correct HTML for inserting an image is "img src="image.gif" /". This is because the "img" tag is used to define an image in HTML, and the "src" attribute specifies the source or location of the image file. In this case, the image file is "image.gif". The "/" at the end of the tag is a self-closing tag, indicating that it does not have a closing tag.

    Rate this question:

  • 14. 

    What is the correct HTML for inserting a background image?

    • A.

      Background img="background.gif"

    • B.

      Img src="background.gif" background /

    • C.

      Body background="background.gif"

    • D.

      All of these

    Correct Answer
    C. Body background="background.gif"
    Explanation
    The correct HTML for inserting a background image is "body background='background.gif'". This attribute is used to specify the background image for the entire body of the HTML document.

    Rate this question:

  • 15. 

    A "radio" button used on a web page, would allow a person to select:

    • A.

      More than one item.

    • B.

      Only one item.

    • C.

      Two item

    • D.

      Infinite item

    Correct Answer
    B. Only one item.
    Explanation
    A "radio" button used on a web page allows a person to select only one item. Unlike checkboxes that allow multiple selections, radio buttons are designed to offer mutually exclusive choices. When one radio button is selected, it automatically deselects any previously selected radio button in the same group. This ensures that only one option can be chosen at a time, making it suitable for situations where only a single choice is allowed.

    Rate this question:

Samy Boulos |MSc (Computer Science) |
Data Engineer
Samy Boulos is an experienced Technology Consultant with a diverse 25-year career encompassing software development, data migration, integration, technical support, and cloud computing. He leverages his technical expertise and strategic mindset to solve complex IT challenges, delivering efficient and innovative solutions to clients.

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jun 17, 2024
    Quiz Edited by
    ProProfs Editorial Team

    Expert Reviewed by
    Samy Boulos
  • Sep 10, 2010
    Quiz Created by
    Sohaver
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.