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






'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 #3 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