HTML Attributes


  1. Which attribute of <input> element can be used both with <datalist> and <select> elements?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    List is the new attribute of <input> element and can be used together with <datalist> and <select> elements. Other attributes like pattern, multiple, max, min, step are new attribute used with the <input> element only.


  1. Which element does not support form attribute?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The new form attribute is for <input>, <select>, <textarea>, <button>, <output> and <fieldset>. One can place these elements anywhere on the page.



  1. Which element does not support autofocus attribute?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Autofocus is a new attribute as well as very interesting one. It can be specified on <input>, <textarea>, <button> and <select> elements. It is a way to focus a form control when the page is loaded.


  1. Which attribute does not lie inside <a> and <area> elements?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Preload is the attribute of the <video> element. Media, ping, hreflang, rel are the attribute used with <a> and <area> elements.



  1. Which is the new attribute of element that is used to change the appearance of checkbox?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The indeterminate is actually not an attribute, it is the property of checkbox which can be change via JavaScript, e.g. Var checkbox=document.getElementById(“any-checkbox”); Checkbox.indeterminate=true;