HTML Forms


  1. How image attribute works?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    the image input type set an image as submit button. The syntax is <input type=”image” src=”imghj.gif” alt=”Submit”> this sets the image provided by url as the submit button. Input type image sends the X and Y coordinates of click and hence the image is activated by clicking the submit button.


  1. month attribute defines ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    month and year are defined by month attribute. It does not define the time zone. The syntax is Anniversary (month and year) <input=”month” name=”anniversary month” >., date attribute defines the date, datetime-local defines date and time but no time zone.



  1. week attribute defines ____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    week input type defines a week and year. It does not define the time zone. Syntax is <form action=”ghu.php”> week: <input type=”week” name=”week and year”> <input type=”submit”> </form>, this gives a selection box and display a calendar like chart from where we can select a week and the year as well.


  1. tel attribute is supported by the _________ browser.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    tel is the attribute which specifies field for telephone number. Syntax is <form action=”hkjk.php”> Telephone number: <input type=”tel” name=”usertelephone”> <br> <input type=”submit”> </form>, tel attribute is usually supported by newer versions like Safari 8.



  1. Which attribute is not used on new forms?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    size attribute denotes the width of text input i.e measured by the number of characters inputted. E.g. If we input value 3 then it will create a box of width enough to display three characters. The user can enter more characters if they want. Syntax is <input type=”text” name=”firstname” size=”12” maxlength=”30”>