-
Which HTML tag is used to embed a video into a webpage?
- A) <video>
- B) <media>
- C) <embed>
- D) <movie>
Answer: A) <video>
Explanation: The <video> tag is used to embed video content into an HTML document.
-
What is the correct HTML tag for creating a checkbox input field?
- A) <checkbox>
- B) <input type="checkbox">
- C) <checkboxinput>
- D) <input type="check">
Answer: B) <input type="checkbox">
Explanation: The <input> tag with the "type" attribute set to "checkbox" is used to create a checkbox input field in HTML forms.
-
Which HTML tag is used to define a keyboard input or user interaction within a webpage?
- A) <input>
- B) <keyboard>
- C) <key>
- D) <kbd>
Answer: D) <kbd>
Explanation: The <kbd> tag is used to define keyboard input or user interaction within an HTML document, typically rendering text in a monospace font.
-
What is the correct HTML tag for defining an unordered list with square bullet points?
- A) <ul type="square">
- B) <ul style="list-style-type: square;">
- C) <ul style="square">
- D) <ul>
Answer: B) <ul style="list-style-type: square;">
Explanation: You can use inline CSS with the "list-style-type" property set to "square" to define square bullet points for an unordered list.
-
Which HTML tag is used to define a section of content that is independent and self-contained within a webpage?
- A) <div>
- B) <section>
- C) <content>
- D) <article>
Answer: D) <article>
Explanation: The <article> tag is used to define an independent, self-contained section of content within an HTML document, such as a blog post or a news article.
-
What is the correct HTML tag for inserting a line break without creating a new paragraph?
- A) <lb>
- B) <break>
- C) <linebreak>
- D) <br>
Answer: D) <br>
Explanation: The <br> tag is used to insert a line break in the text without starting a new paragraph.
-
Which HTML attribute is used to specify the source URL of an image?
- A) src
- B) url
- C) link
- D) img-src
Answer: A) src
Explanation: The "src" attribute is used to specify the source URL of an image in the <img> tag.
-
What is the correct HTML tag for defining a hyperlink to an external webpage?
- A) <external>
- B) <href>
- C) <link>
- D) <a>
Answer: D) <a>
Explanation: The <a> tag is used to define hyperlinks in HTML, including links to external webpages.
-
Which HTML tag is used to define a paragraph of text?
- A) <paragraph>
- B) <p>
- C) <para>
- D) <text>
Answer: B) <p>
Explanation: The <p> tag is used to define paragraphs of text in HTML.
-
What is the correct HTML tag for creating an italicized text?
- A) <italic>
- B) <i>
- C) <italicize>
- D) <em>
Answer: B) <i>
Explanation: The <i> tag is used to italicize text in HTML.
Comments