Learn HTML MCQs
Prepare HTML MCQs (Multiple choice Questions) for exam and job interviews.
Which HTML element defines a section in a document?
1) <section>
2) <div>
3) <article>
4) <header>
Answer : <section>
Which tag is used to create a clickable button in HTML?
1) <btn>
2) <button>
3) <input type="button">
4) <click>
Answer : <button>
Which HTML tag is used to define a navigation bar?
1) <nav>
2) <menu>
3) <list>
4) <header>
Answer : <nav>
How can you create a password field in HTML?
1) <input type="password">
2) <input type="hidden">
3) <input type="text">
4) <password>
Answer : <input type="password">
Which HTML element is used to specify a footer for a section or page?
1) <bottom>
2) <footer>
3) <end>
4) <section>
Answer : <footer>
What is the correct HTML element for defining a side bar in a webpage?
1) <aside>
2) <sidebar>
3) <section>
4) <nav>
Answer : <aside>
Which tag is used to create a list in HTML?
1) <list>
2) <ul>
3) <ol>
4) <li>
Answer : <ul>
Which HTML tag is used to define a section of content in a webpage?
1) <div>
2) <section>
3) <area>
4) <group>
Answer : <section>
What does the `method` attribute in a `<form>` tag specify?
1) The action of the form
2) The way to send form data
3) The size of the form
4) The target of the form
Answer : The way to send form data
Which attribute is used to specify a unique identifier for an HTML element?
1) id
2) class
3) name
4) unique
Answer : id