1. What does HTML stand for?
a) Hyper Text Markup Language
b) High Text Machine Language
c) Hyperlinks and Text Markup Language
d) Home Tool Markup Language
Answer: a) Hyper Text Markup Language
2. Which HTML tag is used to create a hyperlink?
a) <link>
b) <a>
c) <href>
d) <hyperlink>
Answer: b) <a>
3. What is the correct HTML element for inserting a line break?
a) <lb>
b) <break>
c) <br>
d) <hr>
Answer: c) <br>
4. How do you create an ordered list in HTML?
a) <ul>
b) <ol>
c) <list>
d) <dl>
Answer: b) <ol>
5. Which attribute specifies an alternative text for an image if the image cannot be displayed?
a) alt
b) title
c) src
d) href
Answer: a) alt
6. What does the <hr> tag represent in HTML?
a) A horizontal rule
b) A hyperlink reference
c) A heading rule
d) A hard return
Answer: a) A horizontal rule
7. Which tag is used to define a table row?
a) <tr>
b) <td>
c) <th>
d) <row>
Answer: a) <tr>
8. Which of the following HTML tags is self-closing?
a) <div>
b) <p>
c) <img>
d) <span>
Answer: c) <img>
9. What is the correct HTML for creating a checkbox?
a) <checkbox>
b) <input type="checkbox">
c) <check>
d) <input checkbox>
Answer: b) <input type="checkbox">
10. Which HTML tag is used for making text bold?
a) <bold>
b) <b>
c) <strong>
d) Both <b> and <strong>
Answer: d) Both <b> and <strong>
11. How can you create a comment in HTML?
a) // This is a comment
b) <!-- This is a comment -->
c) /* This is a comment */
d) # This is a comment
Answer: b) <!-- This is a comment -->
12. What does the <title> element do in an HTML document?
a) Defines the document's main heading
b) Sets the document's title in the browser tab
c) Creates a tooltip for an element
d) Displays a title inside the page content
Answer: b) Sets the document's title in the browser tab
13. Which attribute is used to open a link in a new window or tab?
a) target="_blank"
b) newwindow="true"
c) window="new"
d) tab="new"
Answer: a) target="_blank"
14. What is the purpose of the <meta charset="UTF-8"> tag?
a) Defines the document's character encoding
b) Sets the language of the document
c) Specifies a font style
d) Links an external CSS file
Answer: a) Defines the document's character encoding
15. Which tag is used to embed a video in HTML5?
a) <media>
b) <movie>
c) <video>
d) <embed>
Answer: c) <video>
0 Comments