JBridge

JBridge: Certification Question Of The Day

JBridge Home >> Certification Questions >> Today's Question Last updated: Thursday 1st May 2003

What is required to complete the following HTML <INPUT> tag in an appropriate way:
<INPUT TYPE='image'
(One answer)



A VALUE='cloudscape'>
B Can't be completed appropriately: there is no "image" type for an INPUT tag.
C VALUE='cloudscape' NAME='cloudpicture'>
D SRC="images/cloudscape.jpg">

Page down for the answer...











































The Answer

D is the appropriate answer: as a minimum, the SRC attribute should be supplied, giving the name and location of the image file to be displayed. Since there is an appropriate way to complete the tag, B is false: image is a legitimate INPUT type. As for A and C, there is nothing wrong with adding VALUE and/or NAME attributes for an image-type INPUT tag (although it is unusual, and they are not essential as the SRC attribute is).

EMail: dbridgewater@jbridge.co.uk
Phone: +44 (0)1943 877414
Fax: +44 (0)1943 877414
Mail: David Bridgewater, Willow Dene, Bradford Road, Menston, Ilkley, West Yorkshire, LS29 6ED, UK
Copyright © 2003 David Bridgewater. All rights reserved.