1. How do you create a link that opens in a new window or tab?
(a) <a href="url" target="_self">
(b) <a href="url" target="_blank">
(c) <a href="url" target="_new">
(d) <a href="url" target="new_window">
2. Which HTML element defines the title of a document?
(a) <meta>
(b) <head>
(c) <title>
(d) <body>
3. How do you create an ordered list?
(a) <ul>
(b) <ol>
(c) <list>
(d) <dl>
4. What does the <hr> tag do?
(a) Makes text bold
(b) Inserts a horizontal rule
(c) Makes text italic
(d) Inserts a vertical line
5. How do you specify a list item?
(a) <li>
(b) <li>
(c) <list>
(d) <item>
6. How do you define a table row?
(a) <td>
(b) <tr>
(c) <table>
(d) <th>
7. How do you define a table cell?
(a) <tr>
(b) <td>
(c) <table>
(d) <th>
8. How do you define a table header?
(a) <td>
(b) <tr>
(c) <th>
(d) <head>
9. Which attribute is used to specify that an input field must be filled out?
(a) placeholder
(b) required
(c) form
(d) validate
10. Which input type defines a slider control?
(a) <input type="search">
(b) <input type="range">
(c) <input type="range">
(d) <input type="slider">
11. How do you group several elements together in a block?
(a) <section>
(b) <div>
(c) <article>
(d) <span>
12. How do you group several elements together inline?
(a) <section>
(b) <div>
(c) <article>
(d) <span>
13. Which element is used for creating a dropdown list?
(a) <select>
(b) <select>
(c) <input type="dropdown">
(d) <list>
14. Which element is used for creating an option in a dropdown list?
(a) <select>
(b) <input>
(c) <option>
(d) <list>
15. Which HTML attribute is used to define inline styles?
(a) class
(b) style
(c) font
(d) styles
16. How can you specify the width and height of an image in HTML?
(a) Use the style attribute
(b) Use the size attribute
(c) Use the width and height attributes
(d) Use the dimensions attribute
17. Which HTML element is used to play audio files?
(a) <mp3>
(b) <sound>
(c) <audio>
(d) <voice>
18. Which HTML element is used to play video files?
(a) <movie>
(b) <video>
(c) <film>
(d) <clip>
19. Which HTML element is used to embed an external application or interactive content?
(a) <iframe>
(b) <embed>
(c) <object>
(d) <applet>
20. What is the correct HTML for creating a form?
(a) <form action="action_page.php">
(b) <form action="action_page.php">
(c) <form url="action_page.php">
(d) <form method="post">
Follow Us