HTML Quiz ( Beginner ) - All Questions
This HTML Easy Quiz is designed for beginners who want to test and strengthen their foundational knowledge of HTML. It covers core concepts commonly asked in interviews and practice tests, making it ideal for students and aspiring frontend developers.
Question 1: What does HTML stand for?
- Hyperlinks and Text Markup Language
- Home Tool Markup Language
- Hyper Text Markup Language
- Hyper Tool Multi Language
Explanation: HTML stands for Hyper Text Markup Language and is used to structure web content.
Question 2: Which HTML tag is used to define a paragraph?
- <para>
- <p>
- <paragraph>
- <text>
Explanation: The <p> tag is used to define a paragraph in HTML.
Question 3: Which tag is used to create the largest heading in HTML?
Explanation: <h1> defines the most important and largest heading in HTML.
Question 4: What is the correct HTML tag for inserting a line break?
Explanation: The <br> tag is used to insert a line break.
Question 5: Which attribute is used to provide an alternative text for an image?
Explanation: The alt attribute provides alternative text for images.
Question 6: Which HTML tag is used to create a hyperlink?
Explanation: The <a> tag is used to create hyperlinks in HTML.
Question 7: Which HTML tag contains metadata about the document?
- <body>
- <header>
- <meta>
- <head>
Explanation: The <head> tag contains metadata such as title, charset, and links.
Question 8: Which tag is used to display an image in HTML?
Explanation: The <img> tag is used to embed images in HTML.
Question 9: What is the correct HTML tag to create an unordered list?
Explanation: <ul> is used to create an unordered list.
Question 10: Which tag is used to create a list item?
Explanation: The <li> tag defines an item in a list.
Question 11: Which HTML element is used to define the title of a document?
- <meta>
- <head>
- <title>
- <header>
Explanation: The <title> tag defines the document title shown in the browser tab.
Question 12: Which attribute specifies the URL in an anchor tag?
Explanation: The href attribute specifies the destination URL.
Question 13: Which HTML tag is used to make text bold?
Explanation: The <b> tag visually makes text bold.
Question 14: Which tag is used to emphasize text semantically?
Explanation: <em> is used for semantic emphasis.
Question 15: Which HTML tag is self-closing?
Explanation: <br> is a self-closing tag.
Question 16: Which attribute is used to specify the character encoding?
Explanation: The charset attribute defines character encoding.
Question 17: Which tag is used to create a table row?
Explanation: <tr> defines a table row.
Question 18: Which tag is used to define a table cell?
Explanation: <td> defines a table data cell.
Question 19: Which HTML tag is used to define a table?
Explanation: <table> is used to create tables.
Question 20: Which attribute makes an input field mandatory?
- required
- validate
- mandatory
- important
Explanation: The required attribute ensures the field must be filled.
Question 21: Which tag is used to create a text input field?
- <input>
- <textfield>
- <text>
- <form>
Explanation: <input> is used to create input fields.
Question 22: Which HTML tag is used to group form elements?
- <group>
- <fieldset>
- <section>
- <form>
Explanation: <fieldset> groups related form elements.
Question 23: Which attribute specifies the image source?
Explanation: The src attribute specifies the image file path.
Question 24: Which tag is used to create a checkbox?
- <checkbox>
- <input type='checkbox'>
- <check>
- <box>
Explanation: Checkboxes are created using input type='checkbox'.
Question 25: Which HTML tag defines emphasized text?
Explanation: <em> represents emphasized text.
Question 26: Which tag is used to display preformatted text?
- <pre>
- <code>
- <format>
- <text>
Explanation: <pre> preserves spaces and formatting.
Question 27: Which HTML tag is used to define the document body?
- <html>
- <main>
- <body>
- <section>
Explanation: <body> contains the visible content.
Question 28: Which tag is used to define a navigation link section?
Explanation: <nav> represents navigation links.
Question 29: Which tag is used to mark highlighted text?
- <mark>
- <highlight>
- <em>
- <strong>
Explanation: <mark> highlights text.
Question 30: Which HTML tag is used to define a footer?
- <bottom>
- <end>
- <footer>
- <section>
Explanation: <footer> defines a footer for a section or page.
Question 31: Which tag is used to create an ordered list?
Explanation: <ol> creates an ordered list.
Question 32: Which HTML tag is used to define a section?
- <div>
- <section>
- <article>
- <span>
Explanation: <section> defines a thematic grouping.
Question 33: Which tag is used to define an article?
- <article>
- <section>
- <div>
- <content>
Explanation: <article> represents independent content.
Question 34: Which HTML tag is used to embed a video?
- <media>
- <movie>
- <video>
- <embed>
Explanation: <video> is used to embed videos.
Question 35: Which tag is used to embed audio?
- <sound>
- <audio>
- <music>
- <media>
Explanation: <audio> embeds sound content.
Question 36: Which HTML attribute specifies the language of the document?
Explanation: The lang attribute specifies the document language.
Question 37: Which tag is used to create a dropdown list?
- <dropdown>
- <select>
- <option>
- <list>
Explanation: <select> creates a dropdown list.
Question 38: Which tag defines an option in a dropdown?
- <item>
- <choice>
- <option>
- <select>
Explanation: <option> defines an item in a select list.
Question 39: Which HTML tag is used to define a header?
- <top>
- <head>
- <header>
- <section>
Explanation: <header> represents introductory content.
Question 40: Which tag is used to define inline content?
- <div>
- <section>
- <span>
- <article>
Explanation: <span> is an inline container.
Question 41: Which HTML tag is used to define emphasized importance?
Explanation: <strong> conveys strong importance.
Question 42: Which attribute opens a link in a new tab?
- new
- open
- target='_blank'
- blank
Explanation: target='_blank' opens a link in a new tab.
Question 43: Which HTML tag defines a horizontal rule?
Explanation: <hr> represents a thematic break.
Question 44: Which HTML tag is used to comment code?
- // comment
- <!-- comment -->
- /* comment */
- # comment
Explanation: HTML comments use <!-- --> syntax.
Question 45: Which tag is used to define metadata charset?
- <meta charset='UTF-8'>
- <charset>
- <encoding>
- <meta lang>
Explanation: Meta charset defines character encoding.
Question 46: Which HTML tag wraps all content?
- <body>
- <main>
- <html>
- <container>
Explanation: <html> is the root element.
Question 47: Which tag is used to group content without semantic meaning?
- <section>
- <article>
- <div>
- <span>
Explanation: <div> is a non-semantic block container.
Question 48: Which tag is used to define keyboard input?
Explanation: <kbd> represents keyboard input.