Trivia Quiz On HTML Tags And Codes!

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 Mnester
M
Mnester
Community Contributor
Quizzes Created: 3 | Total Attempts: 4,305
Questions: 23 | Attempts: 2,536

SettingsSettingsSettings
Trivia Quiz On HTML Tags And Codes! - Quiz

HTML(Hyper Text Markup Language) is used for developing a webpage which can be viewed in a web browser. It includes writing, links, pictures, sound, video and other objects such as an interactive form. This quiz has been made for Programmers and students who are learning HTML about tags and codes. So, let's try out the quiz. All the best!


Questions and Answers
  • 1. 

    What does the acronym HTML represent?

    • A.

      Hypertext Markup Language

    • B.

      Hyperlink Markup Language

    • C.

      Hypertext Marks Language

    • D.

      Hypertext

    Correct Answer
    A. Hypertext Markup Language
    Explanation
    HTML stands for Hypertext Markup Language. It is a standard markup language used for creating web pages and applications. HTML uses tags to structure the content and define the layout of a webpage. It allows the inclusion of text, images, links, multimedia, and other elements. The acronym accurately represents the purpose of HTML, which is to create hypertext documents that can be displayed on the internet.

    Rate this question:

  • 2. 

    What identifies the start of a two-sided tag?

    • A.

      Start Tag

    • B.

      Beginning Tag

    • C.

      Opening Tag

    • D.

      Number One Tag

    Correct Answer
    C. Opening Tag
    Explanation
    The opening tag is what identifies the start of a two-sided tag. It is the first part of the tag and is used to define the beginning of an element in HTML or XML. The opening tag is placed before the content of the element and is usually enclosed in angle brackets. It is important for structuring and organizing the code, as it indicates the start of an element and allows for proper nesting and hierarchy within the document.

    Rate this question:

  • 3. 

    What tag tells the computer that the document is going to be a HTML document?

    • A.

      Tell Tag

    • B.

      HTML Tag

    • C.

      Creation Tag

    • D.

      Identify Tag

    Correct Answer
    B. HTML Tag
    Explanation
    The HTML tag is used to inform the computer that the document is going to be an HTML document. This tag is typically placed at the beginning of the document and it acts as the root element of the HTML file. The HTML tag is essential as it helps the browser to interpret and display the content correctly according to the HTML specifications.

    Rate this question:

  • 4. 

    What tag will have the information that will be displayed in the Web Page?

    • A.

      HTML Tag

    • B.

      Body Tag

    • C.

      Head Tag

    • D.

      Title Tag

    Correct Answer
    B. Body Tag
    Explanation
    The body tag in HTML contains the content that will be displayed on the web page. It includes all the visible elements such as text, images, links, and other media. The body tag is essential for structuring the main content of the webpage and is typically placed between the opening and closing HTML tags.

    Rate this question:

  • 5. 

    • A.

      Opening Tag

    • B.

      Beginning Tag

    • C.

      Closing Tag

    • D.

      Ending Tag

    Correct Answer
    A. Opening Tag
  • 6. 

    What is wrong with the following html code?

    • A.

      Nothing is wrong with the html code

    • B.

      Missing the opening body tag

    • C.

      Missing the closing body tag

    Correct Answer
    C. Missing the closing body tag
    Explanation
    The given html code is missing the closing body tag. In HTML, the opening and closing body tags are used to define the main content of the document. Without the closing body tag, the browser may not be able to properly interpret and display the content within the body tag. It is important to have both the opening and closing body tags to ensure that the HTML code is valid and the content is displayed correctly.

    Rate this question:

  • 7. 

    The following shows correct usage of html code.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The statement "The following shows correct usage of html code" is false. This means that the given code does not demonstrate correct usage of HTML code.

    Rate this question:

  • 8. 

    What tag will create a line break?

    • A.

      Title tag

    • B.

      List tag

    • C.

      Break tag

    • D.

      Body tag

    Correct Answer
    C. Break tag
    Explanation
    The break tag () creates a line break in HTML. When this tag is used, it inserts a line break or a new line at the point where it is placed, allowing for proper formatting and spacing of text or elements on a webpage.

    Rate this question:

  • 9. 

    When displaying the following HTML code in a Web Browser, the list will be displayed as a bulleted list.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    When displaying the given HTML code in a web browser, the list will not be displayed as a bulleted list. This is because the HTML code provided does not include any list tags such as `` (unordered list) or `` (ordered list) to indicate that the content should be displayed as a list. Without these tags, the browser will treat the content as separate paragraphs or lines of text, rather than a list.

    Rate this question:

  • 10. 

    When displaying the following HTML code in a Web Browser, the list will be displayed as an ordered list.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    The given HTML code represents a list with two items. The presence of the `` tag in the code indicates that it is an ordered list. In an ordered list, the items are displayed with numbers or other ordered markers. Therefore, when this code is displayed in a web browser, the list will be displayed as an ordered list.

    Rate this question:

  • 11. 

    What tag is used to insert a graphic?

    • A.

      The graphic tag

    • B.

      The image src tag

    • C.

      The image tag

    • D.

      The graphic src tag

    Correct Answer
    B. The image src tag
    Explanation
    The correct answer is the image src tag. This tag is used to insert a graphic or an image into an HTML document. It specifies the source file of the image using the src attribute.

    Rate this question:

  • 12. 

    What is the purpose of the “alt” element?

    • A.

      To provide information beside the graphic

    • B.

      To provide text information about the graphic if the graphic does not appear

    • C.

      To provide an alternative graphic if the original graphic does not appear

    Correct Answer
    B. To provide text information about the graphic if the graphic does not appear
    Explanation
    The purpose of the "alt" element is to provide text information about the graphic if the graphic does not appear. This is important for accessibility purposes, as it allows visually impaired individuals who use screen readers to understand the content of the graphic. Additionally, if the graphic fails to load or if the user has disabled images in their browser, the alt text provides a description of the graphic, ensuring that the user still receives the intended information.

    Rate this question:

  • 13. 

    How many HTML headings are available?

    • A.

      2

    • B.

      4

    • C.

      6

    • D.

      8

    Correct Answer
    C. 6
    Explanation
    There are six HTML headings available. Headings in HTML are represented by the to tags, where is the highest level heading and is the lowest level heading. Therefore, there are six different levels of headings available in HTML.

    Rate this question:

  • 14. 

    Which heading tag will create the largest heading?

    • A.

      H1 tag

    • B.

      H2 tag

    • C.

      H5 tag

    • D.

      H6 tag

    Correct Answer
    A. H1 tag
    Explanation
    The h1 tag will create the largest heading. In HTML, heading tags are used to define the hierarchy and importance of headings on a webpage. The h1 tag is the highest level heading and is typically used for the main heading or title of the page. It is larger and more prominent than the h2, h5, and h6 tags, which represent lower level headings.

    Rate this question:

  • 15. 

    When adding color to a HTML document the user may use the name of the color or the color value.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    When adding color to an HTML document, the user has the option to use either the name of the color or the color value. This means that they can either specify a color by its common name (e.g., "red", "blue", "green") or by its hexadecimal value (e.g., "#FF0000" for red, "#0000FF" for blue). Both methods are valid and can be used interchangeably based on the user's preference or specific requirements.

    Rate this question:

  • 16. 

    Is the following a correct way for adding color to a HTML Web page?

    • A.

      Yes

    • B.

      No

    Correct Answer
    B. No
    Explanation
    The given answer "No" suggests that the following way is not correct for adding color to an HTML web page. However, without the question or any context provided, it is difficult to provide a specific explanation for why this answer is correct. It is possible that the given way does not adhere to the proper syntax or conventions of HTML coding, or it may be an outdated or deprecated method. Without further information, it is not possible to provide a more detailed explanation.

    Rate this question:

  • 17. 

    When using a color value, the numbers are separated by ______________?

    • A.

      Periods

    • B.

      Commas

    • C.

      Semi Colons

    • D.

      Colons

    Correct Answer
    B. Commas
    Explanation
    When using a color value, the numbers are separated by commas. This is because in color values, such as RGB or CMYK, each number represents the intensity of a specific color component (red, green, blue, cyan, magenta, yellow, black). The commas are used to separate these values and indicate the different color components.

    Rate this question:

  • 18. 

    How many generic fonts are available?

    • A.

      2

    • B.

      3

    • C.

      4

    • D.

      5

    Correct Answer
    D. 5
    Explanation
    There are five generic fonts available.

    Rate this question:

  • 19. 

    Which of the following are all generic fonts?

    • A.

      Fantasy, Cursive, Serif, Monospace, and Times New Roman

    • B.

      Cursive, Fantasy, Serif, Monospace, and Sans Serif

    • C.

      Arial, Cursive, Fantasy, Serif, and Monospace

    • D.

      Cursive, Fantasy, Serif, Monospace, and Garamond

    Correct Answer
    B. Cursive, Fantasy, Serif, Monospace, and Sans Serif
    Explanation
    The correct answer is Cursive, Fantasy, Serif, Monospace, and Sans Serif. These fonts are considered generic because they are commonly found on most operating systems and are not specific to any particular brand or design. They are widely used for various purposes and can be easily recognized and accessed by users across different platforms.

    Rate this question:

  • 20. 

    If you were to display the following HTML code using a Browser, what would appear in the title bar of the Web Browser?

    • A.

      Nothing

    • B.

      HTML Assessment

    • C.

      This Assessment is on HTML Basics

    Correct Answer
    B. HTML Assessment
    Explanation
    The text "HTML Assessment" would appear in the title bar of the web browser.

    Rate this question:

  • 21. 

    If you were to display the following HTML code using a Browser, what would appear in the display area of the Web Brower?

    • A.

      Nothing

    • B.

      HTML Assessment

    • C.

      This Assessment is on HTML Basics

    Correct Answer
    A. Nothing
    Explanation
    The given HTML code does not contain any tags that would indicate any specific formatting or display. Therefore, when this code is displayed in a web browser, nothing would appear in the display area.

    Rate this question:

  • 22. 

    Does the following show correct usage of adding color to HTML code?

    • A.

      Yes

    • B.

      No

    Correct Answer
    A. Yes
    Explanation
    The given answer states "Yes" without any further explanation. It is assumed that the question is asking whether the following example demonstrates the correct usage of adding color to HTML code. Since the answer is "Yes," it can be inferred that the example does indeed show the correct usage of adding color to HTML code. However, without the actual example provided, it is difficult to determine the specific details of the correct usage.

    Rate this question:

  • 23. 

    Does the following show correct usage of adding color to HTML code?

    • A.

      Yes

    • B.

      No

    Correct Answer
    B. No
    Explanation
    The given question asks if the shown usage of adding color to HTML code is correct. Since the answer is "No," it implies that the shown usage is incorrect. However, without the actual HTML code or any further context provided, it is not possible to determine the specific mistake or error in the given usage.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Aug 17, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 29, 2008
    Quiz Created by
    Mnester
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.