HTML - MCQ Questions and Answers

Test your knowledge of HTML with these interactive multiple-choice questions.

« First 3 4 5 6 Last »
« Previous Page Next Page »

61. Which HTML element is used to create a form?

  • a) <input>
  • b) <form>
  • c) <fieldset>
  • d) <submit>
Answer: B - The <form> element is used to create an HTML form for user input.

62. Which HTML element defines a clickable button?

  • a) <button>
  • b) <input type="button">
  • c) <click>
  • d) Both a and b
Answer: D - Both <button> and <input type="button"> create clickable buttons.

63. Which input type creates a checkbox?

  • a) <input type="check">
  • b) <input type="checkbox">
  • c) <checkbox>
  • d) <input type="toggle">
Answer: B - <input type="checkbox"> creates a checkbox input field.

64. Which input type creates a radio button?

  • a) <input type="radio">
  • b) <input type="radiobutton">
  • c) <radio>
  • d) <input type="option">
Answer: A - <input type="radio"> creates a radio button input field.

65. Which input type creates a file upload control?

  • a) <input type="upload">
  • b) <input type="file">
  • c) <file>
  • d) <input type="attachment">
Answer: B - <input type="file"> creates a file upload control.

66. Which input type creates a password field?

  • a) <input type="secret">
  • b) <input type="password">
  • c) <password>
  • d) <input type="hidden">
Answer: B - <input type="password"> creates a password input field that masks characters.

67. Which input type creates a submit button?

  • a) <input type="submit">
  • b) <submit>
  • c) <input type="button">
  • d) <input type="send">
Answer: A - <input type="submit"> creates a button that submits the form data.

68. Which input type creates a reset button?

  • a) <input type="reset">
  • b) <reset>
  • c) <input type="clear">
  • d) <input type="undo">
Answer: A - <input type="reset"> creates a button that resets all form values.

69. Which input type creates a color picker?

  • a) <input type="color">
  • b) <input type="colorpicker">
  • c) <color>
  • d) <input type="palette">
Answer: A - <input type="color"> creates a color picker input field (HTML5).

70. Which input type creates a date picker?

  • a) <input type="date">
  • b) <input type="calendar">
  • c) <date>
  • d) <input type="day">
Answer: A - <input type="date"> creates a date picker input field (HTML5).

71. Which input type creates an email input field?

  • a) <input type="email">
  • b) <email>
  • c) <input type="mail">
  • d) <input type="text">
Answer: A - <input type="email"> creates an email input field with validation (HTML5).

72. Which input type creates a number input field?

  • a) <input type="number">
  • b) <number>
  • c) <input type="numeric">
  • d) <input type="integer">
Answer: A - <input type="number"> creates a number input field (HTML5).

73. Which input type creates a range slider?

  • a) <input type="slider">
  • b) <input type="range">
  • c) <range>
  • d) <input type="scale">
Answer: B - <input type="range"> creates a range slider control (HTML5).

74. Which input type creates a search field?

  • a) <input type="search">
  • b) <search>
  • c) <input type="find">
  • d) <input type="text">
Answer: A - <input type="search"> creates a search input field (HTML5).

75. Which input type creates a telephone number input field?

  • a) <input type="tel">
  • b) <input type="phone">
  • c) <telephone>
  • d) <input type="number">
Answer: A - <input type="tel"> creates a telephone number input field (HTML5).

76. Which input type creates a URL input field?

  • a) <input type="url">
  • b) <input type="link">
  • c) <url>
  • d) <input type="web">
Answer: A - <input type="url"> creates a URL input field with validation (HTML5).

77. Which HTML element defines a drop-down list?

  • a) <list>
  • b) <select>
  • c) <dropdown>
  • d) <input type="list">
Answer: B - The <select> element creates a drop-down list.

78. Which HTML element defines an option in a drop-down list?

  • a) <item>
  • b) <option>
  • c) <li>
  • d) <choice>
Answer: B - The <option> element defines an option in a drop-down list.

79. Which HTML element groups related elements in a form?

  • a) <group>
  • b) <fieldset>
  • c) <div>
  • d) <section>
Answer: B - The <fieldset> element groups related elements in a form.

80. Which HTML element defines a caption for a <fieldset> element?

  • a) <caption>
  • b) <label>
  • c) <legend>
  • d) <title>
Answer: C - The <legend> element defines a caption for a <fieldset> element.
« First 3 4 5 6 Last »
« Previous Page Next Page »

Learn Computer Skills with PCBooks

Master computer skills with PCBooks! Explore interactive tutorials, MCQ tests, and online exams for programming, web development, and IT fundamentals. Perfect for beginners and advanced learners.

Online MCQ Tests for Programming

Practice programming MCQ questions and improve your coding skills with our online quizzes. Whether you're learning Python, Java, or C programming, PCBooks has you covered.

Free Web Development Tutorials

Learn HTML, CSS, and JavaScript with our free web development tutorials. Test your knowledge with interactive quizzes and online exams.