Learn HTML MCQs

Prepare HTML MCQs (Multiple choice Questions) for exam and job interviews.

What does HTML stand for?

1) Hyper Text Markup Language

2) Home Tool Markup Language

3) Hyperlinks and Text Markup Language

4) Hyperlinking Text Management Language

Answer : Hyper Text Markup Language

Which HTML tag is used to define an internal style sheet?

1) <style>

2) <css>

3) <script>

4) <link>

Answer : <style>

Which is the correct HTML element for the largest heading?

1) <h1>

2) <h6>

3) <heading>

4) <h5>

Answer : <h1>

Which attribute is used to provide an alternative text for an image?

1) alt

2) title

3) src

4) href

Answer : alt

Which HTML element is used to specify a footer for a document or section?

1) <footer>

2) <bottom>

3) <section>

4) <header>

Answer : <footer>

What is the correct HTML tag for inserting a line break?

1) <br>

2) <break>

3) <lb>

4) <newline>

Answer : <br>

Which HTML element is used for creating hyperlinks?

1) <a>

2) <link>

3) <href>

4) <button>

Answer : <a>

Which of these elements are all <table> elements?

1) <table>, <tr>, <td>

2) <table>, <head>, <tfoot>

3) <thead>, <body>, <tr>

4) <thead>, <tr>, <td>

Answer : <table>, <tr>, <td>

Which tag is used to define a form in HTML?

1) <form>

2) <input>

3) <textarea>

4) <fieldset>

Answer : <form>

Which of the following is used to create a numbered list?

1) <ol>

2) <ul>

3) <dl>

4) <list>

Answer : <ol>