Html miscellaneous


  1. How title attribute works?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    the title is a global attribute that displays text in a tooltip when hovered over the element. Syntax is:

    <p><abbr title=”Indian Association Service”>IAS</abbr> is India’s one of the most difficult job.</p>


  1. Which of the following defines a default value on page load?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    <button>, <li>, <progress>, <param>, <meter>, <input>, <option> are some elements used with value attribute and defines a default value on the page load. <object> element is used with many attributes like border, data, form, height etc. <area> is used with attributes like alt, cords, download, href, hreflang and many more.



  1. With which element width attribute is not define?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    width attribute is defined with <object>, <iframe>, <img>, <video>, <canvas>, <embed>, <input>. <textarea> is used commonly with autofocus, cols, dirname, disabled, form, maxlength, minlength, name, placeholder, readonly, rows and many other attributes.


  1. What does wrap attribute denote?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    wrap is the attribute of <textarea> element and it indicates whether the text should be wrapped. Syntax: <textarea wrap=””> if we use wrap=”hard” it will contain newlines in the submission of a form. This attribute is newly introduced by HTML5 and is supported by all the browsers.



  1. Which of the following is the attribute that is used to add a name/value pair to a microdata item?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    A boolean global attribute which specifies scope of associated metadata is itemscope. Itemmid is unique global identifier of item. To add a property to an item, the itemprop attribute is used on one of the item’s descendants. Markup without the microdata-related attributes does not have any effect on the microdata model. Itemref provides list of elements id’s with extra/additional properties in the document.