Looking For Anything Specific?

HTML Multiple Choice Questions (MCQs)


1. Which tag is used to display a bullet list?


a) <ol>

b) <dl>

c) <ul>

d) <list>

Answer: c) <ul>


2. What is the correct tag for creating a dropdown list?


a) <select>

b) <dropdown>

c) <list>

d) <option>

Answer: a) <select>


3. Which attribute is used to specify the URL of an image?


a) src

b) href

c) link

d) url

Answer: a) src


4. What is the correct tag to emphasize text?


a) <bold>

b) <em>

c) <strong>

d) <i>

Answer: b) <em>


5. Which tag is used to group multiple form controls together?


a) <group>

b) <fieldset>

c) <formgroup>

d) <div>

Answer: b) <fieldset>


5. How do you specify the language of an HTML document?


a) <html lang="en">

b) <meta language="en">

c) <body lang="en">

d) <doctype lang="en">

Answer: a) <html lang="en">


6. Which HTML element is used for creating a section in a document?


a) <div>

b) <section>

c) <span>

d) <article>

Answer: b) <section>


7. What is the correct syntax for adding a background color in HTML?


a) background="red"

b) <body style="background-color:red;">

c) <body bg="red">

d) <bgcolor="red">

Answer: b) <body style="background-color:red;">


8. What is the default file extension for an HTML document?


a) .htm

b) .html

c) .doc

d) .css

Answer: b) .html


9. Which tag is used to create a table cell?


a) <th>

b) <td>

c) <tr>

d) <cell>

Answer: b) <td>


10. Which HTML element is used for inserting a JavaScript code block?


a) <code>

b) <script>

c) <javascript>

d) <js>

Answer: b) <script>


11. How do you make a numbered list in HTML?


a) <ol>

b) <ul>

c) <li>

d) <number>

Answer: a) <ol>


12. Which tag is used to define the footer of a document or section?


a) <bottom>

b) <footer>

c) <end>

d) <section>

Answer: b) <footer>


12. What is the purpose of the <nav> element in HTML?


a) Display navigation links

b) Display images

c) Add headings

d) Create forms

Answer: a) Display navigation links


13. Which tag is used to create an HTML form?


a) <input>

b) <form>

c) <submit>

d) <button>

Answer: b) <form>



Post a Comment

0 Comments