asp.net.ph

HtmlInputImage.Alt Property

System.Web.UI.HtmlControls Namespace   HtmlInputImage Class


Sets or retrieves the alternative text to display if the image is unavailable.

Syntax


Inline <input type=image alt = strAltTxt ... >
Script HtmlInputImage.Alt [ = strAltTxt ]

Property Value


strAltTxt String that specifies the alternative text to display.

The property is read/write with no default value.

Remarks

Use this property to specify the caption displayed when the image specified by the Src property is unavailable. On newer browsers, the text also displays in the image placeholder before the graphic has loaded, and acts as a ToolTip when the mouse hovers over the graphic.

This property is similar in function to HtmlImage.Alt.

Example

The below code shows how to declaratively set the Alt property of an HtmlInputImage control at design time.

<input type=image src="myPix.jpg" alt="Simply awesome" runat="server" ... >
See Also

HtmlInputImage Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph