HTML quiz questions

HTML interview questions

  • 1.

    What should values always be enclosed in?

    1.  

      Quotation marks

    2. Commas

    3. Parenthesis

    Answer
  • 2.

    Which of the following is an example of an empty element?

    1. < img / >

    2. < img > < / img >

    3. < / img>

    Answer
  • 3.

    What is an element that does not having a closing tag called?

    1.  

      Tag

    2.  

      Empty element

    3. Closed element

    Answer
  • 4.

    where is the meta tag only found?

    1. The last page

    2. The home page

    3. The second page

    Answer
  • 5.

    < / body >
    Is this an opening tag or a closing tag?

    1.  

      Opening

    2.  

      Closing

    Answer
  • 6.

    < body >
    Is this an opening tag or a closing tag?

    1.  

      Opening

    2. Closing

    Answer
  • 7.

    < br  / >
    What type of tag is this?

    1. Break tag

    2. A broken one

    3. An opening tag

    Answer
  • 8.

    what is the difference in an opening tag and a closing tag?

    1. Opening tag has a / in front

    2. Closing tag has a / in front

    3. There is no difference

    Answer
  • 9.

    How many tags are in a regular element?

    1. 2

    2. 1

    3. 3

    Answer
  • 10.

    The HTML global attribute, "contenteditable" is used to:

    1. Specify whether the content of an element should be editable or not

    2. Specifies a context menu for an element. The menu appears when a user right-clicks on the element

    3. Return the position of the first found occurrence of content inside a string

    4. Update content from the server

    Answer
  • 11.

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

    1. <head>

    2. <header>

    3. <top>

    4. <section>

    Answer
  • 12.

    In HTML, what does the <aside> element define?

    1. A navigation list to be shown at the left side of the page

    2. The ASCII character-set; to send information between computers on the Internet

    3. Content aside from the page content

    Answer
  • 13.

    Which HTML element defines navigation links?

    1. <navigate>

    2. <navigation>

    3. <nav>

    Answer
  • 14.

    Which HTML element is used to display a scalar measurement within a range?

    1. <meter>

    2. <range>

    3. <measure>

    4. <gauge>

    Answer
  • 15.

    Which input type defines a slider control?

    1. search

    2. slider

    3. range

    4. controls

    Answer
  • 16.

    In HTML, which attribute is used to specify that an input field must be filled out?

    1. validate

    2. placeholder

    3. formvalidate

    4. required

    Answer
  • 17.

    The HTML <canvas> element is used to:

    1. create draggable elements

    2. display database records

    3. draw graphics

    4. manipulate data in MySQL

    Answer
  • 18.

    Graphics defined by SVG is in which format?

    1. HTML

    2. XML

    3. CSS

    Answer
  • 19.

    In HTML, onblur and onfocus are:

    1. Event attributes

    2. HTML elements

    3. Style attributes

    Answer
  • 20.

    What is the correct HTML element for playing audio files?

    1. <mp3>

    2. <audio>

    3. <sound>

    Answer

© 2017 QuizBucket.org