HTML Web Design Questions and Answers

Practice Mode
Showing 10 of 196 questions
Q171
Which HTML tag is used to insert an image?
  • A <img url="...">
  • B <img alt="...">
  • C <img src="...">
  • D <img link="...">
Answer: Option C
Explanation: The <img> tag with src attribute specifies the image source file path or URL to display the image.
Q172
HTML is a subset of ___________
  • A SGMT
  • B SGML
  • C SGME
  • D XHTML
Answer: Option B
Explanation: HTML is derived from SGML (Standard Generalized Markup Language), which is a standard for defining markup languages.
Q173
Which character is used to close a tag in HTML?
  • A #
  • B !
  • C /
  • D \
Answer: Option C
Explanation: The forward slash (/) is used in closing tags to indicate the end of an element, e.g., </p> closes a paragraph.
Q174
Among the following, which is the HTML paragraph tag?
  • A <p>
  • B <pre>
  • C <hr>
  • D <a>
Answer: Option A
Explanation: The <p> tag defines a paragraph of text, creating block-level elements with automatic spacing.
Q175
In HTML, which attribute opens a link in a new tab?
  • A src="_blank"
  • B alt="_blank"
  • C target="_self"
  • D target="_blank"
Answer: Option D
Explanation: The target="_blank" attribute value makes links open in a new browser tab or window when clicked.
Q176
Which HTML element is used for a short quote?
  • A <em>
  • B <abbr>
  • C <q>
  • D <blockquote>
Answer: Option C
Explanation: The <q> element is for short inline quotations, while <blockquote> is for longer block-level quotations.
Q177
Which tag creates an unordered list?
  • A <ol>
  • B <ul>
  • C <li>
  • D <ll>
Answer: Option B
Explanation: The <ul> tag creates an unordered (bulleted) list, with each item marked by <li> elements.
Q178
Which HTML element is used for abbreviation?
  • A <abbr>
  • B <blockquote>
  • C <q>
  • D <em>
Answer: Option A
Explanation: The <abbr> element represents an abbreviation or acronym, with the full form provided in the title attribute.
Q179
Which tag is used to add a row in a table?
  • A <th>
  • B <td>
  • C <tr>
  • D <tt>
Answer: Option C
Explanation: The <tr> (table row) element defines a row in an HTML table, containing <td> or <th> cells.
Q180
Which tag is used to create a text area in a form?
  • A <textarea></textarea>
  • B <text></text>
  • C <input type="text">
  • D <input type="textarea">
Answer: Option A
Explanation: The <textarea> element creates a multi-line text input field, with rows and cols attributes to specify size.
Questions and Answers for Competitive Exams Various Entrance Test