HTML Web Design Questions and Answers

Practice Mode
Showing 10 of 196 questions
Q161
Which of the following tag is used for inserting the largest heading in HTML?
  • A head
  • B <h1>
  • C <h6>
  • D heading
Answer: Option B
Explanation: HTML provides six heading levels from <h1> (largest/most important) to <h6> (smallest/least important).
Q162
What is DOM in HTML?
  • A Language dependent application programming
  • B Hierarchy of objects in ASP.NET
  • C Application programming interface
  • D Convention for representing and interacting with objects in HTML documents
Answer: Option D
Explanation: The Document Object Model (DOM) represents the document as a tree structure that can be manipulated programmatically.
Q163
In which part of the HTML metadata is contained?
  • A head tag
  • B title tag
  • C html tag
  • D body tag
Answer: Option A
Explanation: The <head> section contains metadata like title, character set, styles, scripts, and other information not displayed on the page.
Q164
Which element is used to get highlighted text in HTML5?
  • A <u>
  • B <mark>
  • C <highlight>
  • D <b>
Answer: Option B
Explanation: The <mark> element is used to highlight text, typically with a yellow background, to indicate relevance.
Q165
Which of the following is not a HTML5 tag?
  • A <track>
  • B <video>
  • C <slider>
  • D <source>
Answer: Option C
Explanation: HTML5 introduced many new semantic elements but <slider> is not a valid HTML5 tag.
Q166
How do we write comments in HTML?
  • A </…….>
  • B <!……>
  • C </……/>
  • D <…….!>
Answer: Option B
Explanation: HTML comments are written between <!-- and --> and are not displayed in the browser.
Q167
Which element in HTML5 defines video content?
  • A <video>
  • B <movie>
  • C <audio>
  • D <media>
Answer: Option A
Explanation: The <video> element is used to embed video content in web pages with support for multiple formats.
Q168
Which is not an element associated with HTML table layout?
  • A alignment
  • B color
  • C size
  • D spanning
Answer: Option B
Explanation: Table layout focuses on structure, alignment, sizing, and cell spanning, not on presentation aspects like color.
Q169
Which element is used for styling HTML5 layout?
  • A CSS
  • B jQuery
  • C JavaScript
  • D PHP
Answer: Option A
Explanation: CSS (Cascading Style Sheets) is used to style and layout HTML elements, controlling appearance and positioning.
Q170
Which HTML tag is used for making text bold?
  • A <u>content</u>
  • B <b>content</b>
  • C <br>content</br>
  • D <i>content</i>
Answer: Option B
Explanation: The <b> tag makes text bold without conveying extra importance, while <strong> indicates important text.
Questions and Answers for Competitive Exams Various Entrance Test