Hosting Solutions
mobile_logo Table of Contents


The <a> anchor element is used to create hyperlinks for document navigation. Some document links like .zip and .pdf will prompt special behavior or treatment by the browser software.

Code Example

relative link <a href="services.html">Services</a> absolute link <a href="">Services</a> <!-- OR --> <a href="/services.html">Services</a> email link ( attempts to open the user's default email program if available ) <a href=""></a> email link with prefilled subject line <a href=" Me">Email Me</a> in-document anchor point links <a href="#point1">see section 1</a> <h1 id="point1">Section 1</h1> relative link into child folders <a href="folder/services.html">Services</a> relative link into parent folder <a href="../services.html">Services</a> relative link into parent's parent folder <a href="../../services.html">Services</a>


globals - the global attributes common to all elements possible values: see global attribute list href - specify the path to the resource to navigate to or download possible values: "url string" target - specify the browsing context(how the document is opened) possible values: "_blank", "_self", "_parent", "_top" download - specify that the resource is a file to be downloaded possible values: "recommended default file name"(value is optional) rel - specify relationship between the linking file and the destination file possible values: "space separated token list" hreflang - language of the destination file possible values: "a valid BCP 47 language tag" type - mime type of the destination file possible values: "valid MIME type"



aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr