Using the anchor tag to create links
There are two types of links to pages you can create. There is the "Internal Link" and the "External Link". An "Internal Link" is a link in your site that navigates the visitor to another page in your website. The "External Link" navigates the visitor away from your site to another website in the internet (like http://google.com). Below are examples of an external and internal link. The
<a> in an HTML tag called an "anchor". The anchor can have different attributes inside. The "href" attribute is the location the link takes you when clicked.
Note! If you are using a Content Management System like Drupal, Joomla, Wordpress or the Premium Web Builder, you will use their WYSIWYG editor to create links. For more information see the following links.
Creating an Internal link in your website
This first link is the "Internal Link". Internal links reference to a file location on your server. The path to the file location is placed in the "href" attribute. To link a page in your own site you reference the location of the file in the "href" attribute. For Example, if you place a file called nextpage.html in your public_html for your main domain, you simply put the file name like below.
<a href="/support/nextpage.html">This text will now be a link</a>
To reference a file in a subfolder, you include the subfolder name in the "href" attribute For example, if you have nextpage.html in a folder called subfolder, you will create the link like the following:
<a href="/support/subfolder/nextpage.html">This text will now be a link</a>
Important! Don't forget to close out the tag with the proper closing tag which is
</a>. If you don't close the tag the entire page below the tag will become a hyperlink as well.
Creating an External link to another site
Creating an "External Link" only requires you to have the link to the page. If you want to link your site to inmotionhosting.com for example, you would copy the url in the address bar when you are at inmotionhosting.com, and paste the url in the "href" of your anchor / link like the following:
<a href="http://inmotionhosting.com">Text that will be a link</a>
This will make the link go to inmostionhosting.com when clicked.
Basic list of necessary Anchor attributes
Below is a table on basic anchor tag attributes. There are many more attributes available to use in anchor tags; however we will only cover the basic 4 attributes most commonly used.
|Basic Anchor Attributes|
|href||This attribute specifies where the link will navigate to.
<a href="nextpage.html">This text will now be a link</a>
|target||You can have your links open in a new tab or open in the same window with the target.
_blank (Opens in a new tab)The below is an example of the _blanktarget.
<a href="/support/nextpage.html" target="_blank">This text will now be a link</a>
|title||Shows information about the link. When you hover your mouse over a link with a title tag, a little pop up will display the text in this attribute.
<a href="/support/nextpage.html" title="Click here to see this link">This text will now be a link</a>
|name||This is the name of the anchor, This is used for linking to a specific spot in a page. For example, if you want to navigate to the bottom of your web page, you can add a name attribute like:
<a name="bottom">bottom</a>When you create this name you can reference your site like:
http://example.com/#bottomVisiting this will send the web surfer to the bottom of your main page.
<a href="/support/nextpage.html" name="location_of_page">This text will now be a link</a>
Support Center Login
Social Media Login
Inserting Links into a Website
|1.||Using the anchor tag to create links|
|2.||Creating an Email Link in your Webpage|
|3.||Opening a new window with a link|
|4.||Anchor Links and How to Create Them|
|5.||Hotlink or Direct link to files on the server|
2015-08-06 3:32 pm
One of your techs sent me a link to the above information, but I need more basic instruction. I am trying to create a link in Premium Web Builder from a specific word or phrase on one webpage to further information about that word, like a definition, on another webpage (on the same website).
It looks like the info above is what I need, but it is too advanced for me. Can you give me more step-by-step basic instruction? How do I fix the location of the anchor - do I highlite it? And where am I entering all of this information?
Sorry, I wish I could be more specific. I pretty much understand the instructions above, but need a little more before and after instructions.
Thanks - hope you can help.
2015-08-06 5:22 pm
Thank you for contacting us. Yes, the above guide is for creating an HTML link, but since you are using the Builder we have a more detailed guide: Adding External Links in the Premium Website Builder
You can also link to places within the page using anchor links.
If you have any further questions, feel free to post them below.