'a' Example : a « HTML Tag Reference « HTML CSS Reference

Home
HTML CSS Reference
1.CSS Attributes and Javascript Style Properties
2.HTML Attributes Reference
3.HTML Tag Reference
HTML CSS Reference » HTML Tag Reference » a 
'a' Example

    

<html>
<head>
<title>A element example</title>
</head>
<body>
   <a name="top"></a>
   <h2>Used as a hyperlink:</h2>
   <a href="http://www.java2s.com/" target="_blank">java2s.com</a>
   
</body>
</html>




<html>
<head>
<title>A element example</title>
</head>
<body>
   <a name="top"></a>
   <h2>Used as an anchor:</h2>
   <p><a href="#par3">Go to paragraph #in this page</a></p>
   <p><a href="yourdocument.html#sty">Go to the yourdocument.htm page, sty location</a></p>
   <p align="left">Paragraph #2</p>
   <p align="left"><a name="par3">Paragraph #3</a></p>
   <p align="left"><a href="#top">Top</a></p>
</body>
</html>



           
      
      
Related examples in the same category
1.'a' Syntax and Note
2.'a' HTML Attributes
3.'a' Event Handlers
4.'a' CSS Attributes and JavaScript Style Properties
5.'a' Microsoft Behaviors
6.'a' Microsoft Filters
7.'a' JavaScript Properties
8.'a' JavaScript Methods
9.'a' JavaScript Collections
10.'a' JavaScript Objects
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.