-
What is the correct HTML tag for defining the title of a webpage?
- A) <title>
- B) <header>
- C) <h1>
- D) <heading>
Answer: A) <title>
Explanation: The <title> tag is used to define the title of an HTML document, which is displayed in the browser's title bar or tab.
-
Which HTML tag is used to define a table cell?
- A) <td>
- B) <tr>
- C) <table>
- D) <th>
Answer: A) <td>
Explanation: The <td> tag is used to define a single table cell in an HTML table, containing data or content within the table.
-
What is the correct HTML tag for defining a hyperlink with a tooltip or additional information when hovered over?
- A) <a>
- B) <link>
- C) <tooltip>
- D) <a title="...">
Answer: D) <a title="...">
Explanation: Adding a "title" attribute to the <a> tag allows you to create a hyperlink with a tooltip or additional information that appears when hovered over.
-
Which HTML tag is used to create a navigation menu within a webpage?
- A) <nav>
- B) <menu>
- C) <navigation>
- D) <navbar>
Answer: A) <nav>
Explanation: The <nav> tag is used to define a navigation menu within an HTML document.
-
What does the acronym "CSS" stand for in web development?
- A) Cascading Style Script
- B) Computer Style Sheets
- C) Creative Style Sheets
- D) Cascading Style Sheets
Answer: D) Cascading Style Sheets
Explanation: CSS stands for Cascading Style Sheets, which is used to describe the presentation of a document written in HTML.
-
What is the correct HTML tag for creating a hyperlink with a specific target location within the same webpage?
- A) <link>
- B) <a href="#">
- C) <a name="target">
- D) <a href="#target">
Answer: D) <a href="#target">
Explanation: The <a> tag with the "href" attribute set to "#target" can be used to create a hyperlink to a specific target location within the same webpage by referencing the target's ID.
-
Which HTML tag is used to define a block of quoted text or a citation within a webpage?
- A) <quote>
- B) <blockquote>
- C) <cite>
- D) <q>
Answer: B) <blockquote>
Explanation: The <blockquote> tag is used to define a block of quoted text or a citation within an HTML document.
-
What is the correct HTML tag for defining the main content area of a webpage?
- A) <content>
- B) <main>
- C) <body>
- D) <section>
Answer: B) <main>
Explanation: The <main> tag is used to define the main content area of a webpage, containing the primary content of the page.
-
Which HTML tag is used to define a navigation menu?
- A) <nav>
- B) <menu>
- C) <navbar>
- D) <navigation>
Answer: A) <nav>
Explanation: The <nav> tag is used to define a navigation menu in HTML, typically containing links to various sections or pages of a website.
-
What is the correct HTML tag for creating a dropdown menu?
- A) <dropdown>
- B) <select>
- C) <menu>
- D) <option>
Answer: B) <select>
Explanation: The <select> tag is used to create a dropdown menu in HTML, with selectable options defined by nested <option> tags.
Comments