HTML quiz questions

HTML interview questions

  • 1.

    What is the correct HTML element for playing video files?

    1. <media>

    2. <movie>

    3. <video>

    Answer
  • 2.

    In HTML, you can embed SVG elements directly into an HTML page.

    1. True

    2. False

    Answer
  • 3.

    Which HTML element is used to specify a footer for a document or section?

    1. <footer>

    2. <bottom>

    3. <section>

    Answer
  • 4.

    Which doctype is correct for HTML5?

    1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">

    2. <!DOCTYPE html>

    3. <!DOCTYPE HTML5>

    Answer
  • 5.

    Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

    1. alt

    2. longdesc

    3. title

    4. src

    Answer
  • 6.

    Which HTML element defines the title of a document?

    1. <head>

    2. <title>

    3. <meta>

    Answer
  • 7.

    Block elements are normally displayed without starting a new line.

    1. True

    2. False

    Answer
  • 8.

    HTML comments start with <!-- and end with -->

    1. True

    2. False

    Answer
  • 9.

    An <iframe> is used to display a web page within a web page.

    1. There is no such thing as an <iframe>

    2. False

    3. True

    Answer
  • 10.

    What is the correct HTML for inserting a background image?

    1. <body style="background-image:url(background.gif)">

    2. <background img="background.gif">

    3. <body bg="background.gif">

    Answer
  • 11.

    What is the correct HTML for inserting an image?

    1. <img alt="MyImage">image.gif</img>

    2. <image src="image.gif" alt="MyImage">

    3. <img src="image.gif" alt="MyImage">

    4. <img href="image.gif" alt="MyImage">

    Answer
  • 12.

    What is the correct HTML for making a text area?

    1. <input type="textarea">

    2. <input type="textbox">

    3. <textarea>

    Answer
  • 13.

    What is the correct HTML for making a drop-down list?

    1. <list>

    2. <select>

    3. <input type="list">

    4. <input type="dropdown">

    Answer
  • 14.

    What is the correct HTML for making a text input field?

    1. <input type="textfield">

    2. <textfield>

    3. <input type="text">

    4. <textinput type="text">

    Answer
  • 15.

    What is the correct HTML for making a checkbox?

    1. <checkbox>

    2. <input type="check">

    3. <check>

    4. <input type="checkbox">

    Answer
  • 16.

    How can you make a bulleted list?

    1. <ul>

    2. <list>

    3. <dl>

    4. <ol>

    Answer
  • 17.

    How can you make a numbered list?

    1. <ul>

    2. <list>

    3. <ol>

    4. <dl>

    Answer
  • 18.

    Inline elements are normally displayed without starting a new line.

    1. True

    2. False

    Answer
  • 19.

    Which of these elements are all <table> elements?

    1. <table><tr><td>

    2. <table><tr><tt>

    3. <thead><body><tr>

    4. <table><head><tfoot>

    Answer
  • 20.

    How can you open a link in a new tab/browser window?

    1. <a href="url" target="_blank">

    2. <a href="url" new>

    3. <a href="url" target="new">

    Answer

© 2017 QuizBucket.org