HTML Forms


  1. Which of the following defines a group of related options in a drop-down list?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    HTML form element is used in its

    tag having its own structure which is used by users for various tasks. If you have a long list of options, groups of related options are easier to handle for a user. Result of calculation (script) is represented by output tag. A drop down list of items is defined by

  1. Which of the following is not a HTML5 added form element?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    <datalist>, <keygen> and <output> are HTML5 added form element. Element <password> is not a HTML5 added form element. Password is an attribute used in input type in HTML.



  1. Which element specifies a list of pre-defined options for an input element?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The datalist tag is used to provide an “autocomplete” feature on input elements. Users will see a drop-down list of pre-defined options as they input data. Password defines password field in HTML. It is attribute for input-type. The element references from data after form has submitted. Result of calculation (script) is represented by output tag.


  1. __________ allows the iframe to pull in content from elsewhere in the same domain.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Scripts are re-enabled by allow-scripts. Allow-forms re-enables from submission. Allow-same-origin allows iframe content to be treated as being from the same origin. API’s are re-enable by allow-pointer-lock.



  1. What is the default type of ‘type’ attribute of <input> element?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Text input type defines single line text field. Type is the attribute that displays type of <input> elements. Its default type is text. It is supported by most of the browsers like Chrome, Internet Explorer, Firefox, Opera. Syntax is: <form action=”jump.php”> Name:<input type=”text” name=”name”> </form> A password field is defined by password input.