The HTML Elements reference

"a" - html element

  • The A element denotes an anchor; a hypertext link or the destination of a link.
  • Starttag <a> is Required and endtag </a> is Required
  • The HREF attribute specifies a hypertext link to another resource, such as an HTML document or a JPEG image.
  • Browsers that support the a - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "a" example:
<html>
<body>
  Visit <a href="http://www.bing.com">www.yahoo.com
  </a>
</body>
</html>


Attributes:
accesskey , charset , class , coords , dir , href , hreflang , id , lang , name , rel , rev , shape (Initial: rect), style , tabindex , target , title , type

Attribute "accesskey" value(s): a character as the accesskey
  • Assigns an access key to an element. Pressing an access key assigned to an element gives focus to the element. Will move focus to the a element and when a user activates a link defined by the "a" element, the user agent generally follows the link.
  • The action that occurs when an element receives focus depends on the element.
  • The key combination that activates the link to which the accesskey is applied varies depending on the platform and browser combination.
These are for the windows platform:
Browser accesskey usage Remarks
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Alt + accesskey Set the focus on the element. Press enter to execute any link.
Shift + escape + accesskey Shift + escape gives you a list of possible accesskey related to the page.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.

Attribute "accesskey" example:
<html>
 <body>
   <form  action="http://www.bing.com">
     <button accesskey="X" title="Visit www.yahoo.com"
      onclick="if (document.all)
               document.all.tags('form')[0].submit();
               else  document.form[0].submit();" >
       Search</button>
  </form>
 </body>
</html>



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.