HTML and CSS Reference
In-Depth Information
Compatibility
CSS3 Proposed
Chrome 3+, Safari 3.1+
Notes
• WebKit supports this property as @-webkit-keyframes .
accelerator
This property specifies whether an element is an accelerator indicator or not.
Syntax
accelerator: true | false
When the standard underline style is applied and accelerator is set to true , the style
should be toggled when the ALT key is depressed, revealing the various access keys in play.
Example
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> accelerator Test </title>
<style type="text/css" media="screen">
.accelerator {-ms-accelerator: true;
accelerator: true;
text-decoration: underline;}
</style>
</head>
<body>
<form action="login.php" method="post">
<div>
<label> U <span class="accelerator"> s </span> ername :
<input type="text" name="username" id="username" accesskey="s">
</label>
</div>
<div>
<label><span class="accelerator"> P </span> assword:
<input type="password" name="userpass" id="userpass" accesskey="p">
</label>
</div>
<div>
<input type="submit" value="login">
</div>
</form>
</body>
</html>
O NLINE http://htmlref.com/ch6/accelerator.html
Search WWH ::




Custom Search