'href' sets URL or anchor point of the 'a', 'area', 'base', and 'link' elements : a « Tags « HTML / CSS






'href' sets URL or anchor point of the 'a', 'area', 'base', and 'link' elements

   
    
<HTML>
<BODY>
<a href="#jumpto">Scroll down to the bottom paragraph</a>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<p id="jumpto">This is the last paragraph on the page</p>
</BODY>
</HTML>  
    
      
        
    
    
  








Related examples in the same category

1.'a' Example: link
2.'a' Example: anchor
3.Link visted
4.a:active {color:#ff0000;}
5.A link with white space
6.A link to send an email
7.A link to a specific part of the page
8.Anchor display: block;
9.Anchor float: left;
10.Anchor font-family: Arial;
11.Anchor font-size: 11px;
12.Anchor color: red;
13.Anchor padding: 0 0 0 15px;
14.anchor color: #acaf2c;
15.anchor font-weight: bold;
16.a with accesskey
17.Anchors and Images
18.Using CSS with Anchors
19.Anchor inside a LI
20.Visted Anchor Style inside a LI
21.Img style inside an anchor
22.Anchor with ID
23.Using dotted line to highlight anchor
24.Link the file in upper level folder
25.Link to html file in the same folder
26.mailto link
27.Link to the file in a folder
28.Link to another site
29.Using ftp protocol in a link
30.Change color for links
31.'alink' specifies the link color inside the 'body' when it has the focus
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