-
Which HTML tag is used to create an ordered list?
- A) <ul>
- B) <li>
- C) <ol>
- D) <list>
Answer: C) <ol>
Explanation: The <ol> tag is used to create an ordered (numbered) list in HTML.
-
What is the correct HTML tag for defining a division or a section in a webpage?
- A) <section>
- B) <div>
- C) <block>
- D) <area>
Answer: B) <div>
Explanation: The <div> tag is a block-level element used to define divisions or sections in an HTML document.
-
Which HTML tag is used to create a hyperlink to another webpage?
- A) <url>
- B) <a>
- C) <link>
- D) <href>
Answer: B) <a>
Explanation: The <a> tag is used to create hyperlinks in HTML, allowing users to navigate to other web pages.
-
What is the correct HTML tag for inserting an image?
- A) <img>
- B) <image>
- C) <picture>
- D) <source>
Answer: A) <img>
Explanation: The <img> tag is used to insert an image into an HTML document.
-
Which HTML tag is used to define a table row?
- A) <tr>
- B) <table>
- C) <row>
- D) <th>
Answer: A) <tr>
Explanation: The <tr> tag is used to define a row within an HTML table.
-
What is the correct HTML tag for creating a hyperlink to another webpage that opens in a new browser tab?
- A) <a target="_blank">
- B) <a new="true">
- C) <a href="#" target="_blank">
- D) <a href="#" newtab>
Answer: A) <a target="_blank">
Explanation: Adding the attribute "target" with the value "_blank" to the <a> tag will open the linked document in a new browser tab or window.
-
Which HTML tag is used for creating a numbered list?
- A) <ol>
- B) <ul>
- C) <li>
- D) <list>
Answer: A) <ol>
Explanation: The <ol> tag is used to create an ordered (numbered) list in HTML.
-
What is the correct HTML tag for defining an input field for entering text?
- A) <input>
- B) <text>
- C) <textbox>
- D) <textfield>
Answer: A) <input>
Explanation: The <input> tag is used to create various types of input fields in HTML, including text fields.
-
Which HTML tag is used to define a table header?
- A) <thead>
- B) <th>
- C) <header>
- D) <table-header>
Answer: B) <th>
Explanation: The <th> tag is used to define table header cells in an HTML table.
-
What is the correct HTML tag for defining a paragraph of text?
- A) <p>
- B) <para>
- C) <paragraph>
- D) <text>
Answer: A) <p>
Explanation: The <p> tag is used to define paragraphs of text in HTML.
Comments