HTML Forms
- How image attribute works?
-
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.
- month attribute defines ___________.
-
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.
- week attribute defines ____________.
-
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.
- tel attribute is supported by the _________ browser.
-
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.
- Which attribute is not used on new forms?
-
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”>