HTML Aptitude Test - 25 MCQ Questions with Answers

This post presents an HTML aptitude test with 25 multiple-choice questions for beginners. These beginner-level MCQ questions cover the fundamentals of HTML.

1. What does HTML stand for?

a) HyperText Markup Language
b) HyperTool Multi Language
c) Hyperlinks and Text Markup Language
d) HomeTool Markup Language

2. Which HTML element is used to define a paragraph?

a) <paragraph>
b) <pg>
c) <p>
d) <para>

3. What is the purpose of the <title> element in HTML?

a) Creates a large title decoration
b) Defines the title of the webpage, shown in browser tab
c) Highlights important text
d) Creates an additional window

4. Which tag is used to create a hyperlink in HTML?

a) <hyperlink>
b) <link>
c) <a>
d) <href>

5. How do you insert an image in an HTML page?

a) <img href="image.jpg">
b) <image src="image.jpg">
c) <img src="image.jpg">
d) <insert img="image.jpg">

6. What does the "src" attribute in an <img> tag stand for?

a) Source
b) Sub-reference
c) Sub-route
d) Style reference

7. Which HTML element is used to define a list that lists its items with bullets?

a) <ul>
b) <ol>
c) <li>
d) <bl>

8. How do you create a checkbox in HTML?

a) <input type="checkbox">
b) <check>
c) <input type="check">
d) <checkbox>

9. What is the purpose of the <div> tag in HTML?

a) To divide the text into paragraphs
b) To dynamically change content
c) To define a division or section in an HTML document
d) To describe content

10. Which HTML element is used to define emphasized text?

a) <strong>
b) <em>
c) <mark>
d) <italic>

11. How do you create a text input field in HTML?

a) <input type="textfield">
b) <textfield>
c) <input type="text">
d) <textinput>

12. Which element is used to create a dropdown list?

a) <dropdown>
b) <select>
c) <list>
d) <option>

13. What is the purpose of the <meta> tag in HTML?

a) To store metadata
b) To refresh the page periodically
c) To define the file path
d) To enhance the keywords

14. How can you make a list that also contains sublists in HTML?

a) Using the <sublist> element
b) By nesting <ul> elements inside <li> elements
c) By using the <head> element
d) Using the <groups> element

15. What attribute is used to provide an alternative text for an image, if the image cannot be displayed?

a) alt
b) title
c) src
d) longdesc

16. How do you add a background color for all <h1> elements?

a) <h1 style="background-color:#FFFFFF;">
b) <h1 bg="white">
c) <h1 style="background-color:blue;">
d) <h1 color="blue">

17. What does the <br> tag do in HTML?

a) Breaks the line
b) Bolds the text
c) Breaks the page into sections
d) None of the above

18. How do you make text bold in HTML?

a) <bold>
b) <b>
c) <strong>
d) b) and c) are correct

19. What HTML tag is used for creating a clickable button?

a) <click>
b) <button>
c) <submit>
d) <btn>

20. What element is used to specify the document's body?

a) <header>
b) <body>
c) <footer>
d) <main>

21. Which element is used to create a line break or thematic break in an HTML document?

a) <break>
b) <lb>
c) <hr>
d) <line>

22. How do you add a comment in an HTML document?

a) <!-- comment -->
b) // comment
c) /* comment */
d) # comment

23. Which element is used for the largest heading in HTML?

a) <heading>
b) <h6>
c) <h1>
d) <head>

24. Which attribute specifies a link's destination in an <a> tag?

a) link
b) ref
c) href
d) src

25. What element is used to define important text in HTML?

a) <strong>
b) <important>
c) <b>
d) <mark>

Comments