Html5(Html ) Questions and Answers

Question 1. __________ defines the accelerator key to be used for keyboard access to an element.
  1.    data-X
  2.    accesskey
  3.    rp
  4.    command
Explanation:-
Answer: Option B. -> accesskey
The accesskey attribute specifies a shortcut key to activate/focus an element.

Question 2. Which of the following element represents the header of a section or the document and contains a label or other heading information for the related content?
  1.    data-X
  2.    header
  3.    mark
  4.    meter
Explanation:-
Answer: Option B. -> header
The header element represents a container for introductory content or a set of navigational links.

Question 3. Which of the following is not a newly added element in HTML5?
  1.    article
  2.    audio
  3.    nav
  4.    frameset
Explanation:-
Answer: Option D. -> frameset
frameset is usability concerns.

Question 4. Which of the following HTML 4 attributes is removed in HTML5?
  1.    text
  2.    rules
  3.    link
  4.    all of the mentioned
Explanation:-
Answer: Option D. -> all of the mentioned
All the mentioned attributes are deprecated in HTML5.

Question 5. Which of the following element is removed by HTML5?
  1.    vlink
  2.    dir
  3.    marginwidth
  4.    compact
Explanation:-
Answer: Option B. -> dir
dir is rarely used, and provides similar functionality to unordered lists.

Question 6. The ___________ element must reference a ‘linearGradient’ or ‘radialGradient’ element.
  1.    script
  2.    radialGradient
  3.    animateTransform
  4.    clip-Path
Explanation:-
Answer: Option B. -> radialGradient
radialGradient lets authors define radial gradients to fill or stroke graphical elements.

Question 7. Which property of SVG restricts the region to which paint can be applied?
  1.    animateTransform
  2.    clip-Path
  3.    linearGradient
  4.    radialGradient
Explanation:-
Answer: Option B. -> clip-Path
A clipping path is defined with a clipPath element. A clipping path is used/referenced using the clip-path property.

Question 8. SVG also stands for Scalar Vector Graphics
  1.    True
  2.    False
Explanation:-
Answer: Option B. -> False
SVG stands for Scalable Vector Graphics

Question 9. Which SVG element produces the same effect as if the nodes were deeply cloned into a non-exposed DOM?
  1.    tref
  2.    use
  3.    stroke
  4.    bin
Explanation:-
Answer: Option B. -> use
The use element takes nodes from within the SVG document, and duplicates them somewhere else.

Question 10. The __________ element must reference either an ‘altGlyphDef’ element or a ‘glyph’ element.
  1.    href
  2.    src
  3.    animate
  4.    altGlyph
Explanation:-
Answer: Option D. -> altGlyph
The altGlyph element allows sophisticated selection of the glyphs used to render its child character data.