Hyperlinks are really important — they are what makes the Web a web. This article shows the syntax required to make a link, and discusses link best practices. Hyperlinks are one of the most exciting innovations the Web has to offer. They've been a feature of the Web since the beginning, and are what makes the Web a web. Hyperlinks allow us to link documents to other documents or resources, link to specific parts of documents, or make apps available at a web address. Almost any web content can be converted to a link so that when clicked or otherwise activated the web browser goes to another web address URL. If the web browser doesn't know how to display or handle the file, it will ask you if you want to open the file in which case the duty of opening or handling the file is passed to a suitable native app on the device or download the file in which case you can try to deal with it later on. I'm creating a link to the Mozilla homepage. Another attribute you may want to add to your links is title. The title contains additional information about the link, such as which kind of information the page contains, or things to be aware of on the web site.


HTML Link Syntax


Creating Links in HTML
The letter "A" in the tag is then followed by an attribute. After the first one, we have the "A" part of the tag. Then we have the HREF part, signifying a link to another web page. After the equals sign comes the address of the web page itself. The address is case sensitive, so if there is a capital letter in the address, make sure to include it. This address www. Next comes the text that people see, the text you want them to click on. To close an anchor link, you use the end anchor tag. Open up your template text file. In the file name box, type index.
Jump to section
A link or hyperlink is a connection from one web resource to another. Links allow users to move seamlessly from one page to another, on any server anywhere in the world. A link has two ends, called anchors.
Links are found in nearly all web pages. Links allow users to click their way from page to page. Note: A link does not have to be text. A link can be an image or any other HTML element! It has the following syntax:. By default, the linked page will be displayed in the current browser window. To change this, you must specify another target for the link. The target attribute specifies where to open the linked document. Both examples above are using an absolute URL a full web address in the href attribute.