'a' Example: anchor : a « Tags « HTML / CSS






'a' Example: anchor

    
    


<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' Example: link
2.Link visted
3.a:active {color:#ff0000;}
4.A link with white space
5.A link to send an email
6.A link to a specific part of the page
7.Anchor display: block;
8.Anchor float: left;
9.Anchor font-family: Arial;
10.Anchor font-size: 11px;
11.Anchor color: red;
12.Anchor padding: 0 0 0 15px;
13.anchor color: #acaf2c;
14.anchor font-weight: bold;
15.a with accesskey
16.Anchors and Images
17.Using CSS with Anchors
18.Anchor inside a LI
19.Visted Anchor Style inside a LI
20.Img style inside an anchor
21.Anchor with ID
22.Using dotted line to highlight anchor
23.Link the file in upper level folder
24.Link to html file in the same folder
25.mailto link
26.Link to the file in a folder
27.Link to another site
28.Using ftp protocol in a link
29.Change color for links
30.'alink' specifies the link color inside the 'body' when it has the focus
31.'href' sets URL or anchor point of the 'a', 'area', 'base', and 'link' elements
32.'hreflang' specifies in the href attribute
33.'methods' sets a comma-separated list of HTTP methods supported by the element
34.'name' sets the element name or the target for an anchor 'a' element
35.'rel' describes the relationship between the document in href and the current document
36.'rev': The reverse of the rel attribute
37.'target' Example: blank, parent, self and top
38.'type': set the MIME content type of the document specified by the href attribute
39.'hidefocus' hides focus
40.'style' applies style inline rules to an element
41.'urn' Uniform Resource Name (URN) for a target document
42.'dir' sets the read direction