New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

WAI-ARIA Support

The RadImageButton control has WAI-ARIA support which can be easily enabled by setting its EnableAriaSupport property to true.

According to the WAI-ARIA specifications for image buttons, when Text is set, it is set as the title attribute of the image button.

The WAI-ARIA attributes are rendered with JavaScript because no HTML document can validate if they are present in the server markup. Therefore, in order to see them, you should inspect the control with the browser dev toolbar and not the page source.

  • DefaultVB.aspx
  • styles.css
<%@ Page Language="vb"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container no-bg player-body-bg">
        <telerik:RadImageButton runat="server" CssClass="play-button" ID="RadImageButton1" EnableAriaSupport="true" Text="Play" Width="110px" Height="44px" AutoPostBack="false">
            <Image Url="images/Play_normal.png" HoveredUrl="images/Play_hover.png" PressedUrl="images/Play_pressed.png" />
        </telerik:RadImageButton>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance