<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Links</id>
		<title>Links - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Links"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Links&amp;action=history"/>
		<updated>2026-05-25T00:22:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Links&amp;diff=1350&amp;oldid=prev</id>
		<title>Davidd: Created page with &quot;Links refer to objects on a web page that navigate to another page when clicked.  This article will give information regarding links and their usage.  ==How Links Are Created=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Links&amp;diff=1350&amp;oldid=prev"/>
				<updated>2013-04-25T15:25:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Links refer to objects on a web page that navigate to another page when clicked.  This article will give information regarding links and their usage.  ==How Links Are Created=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Links refer to objects on a web page that navigate to another page when clicked.  This article will give information regarding links and their usage.&lt;br /&gt;
&lt;br /&gt;
==How Links Are Created==&lt;br /&gt;
&lt;br /&gt;
Links are most often created using the HTML '''&amp;lt;a&amp;gt;''' tag.  The '''href''' attribute of the '''&amp;lt;a&amp;gt;''' tag allows you to specify the location to which the link will navigate.  Any HTML elements within the opening and closing elements of the '''&amp;lt;a&amp;gt;''' tag will be clickable.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 &amp;lt;a href=&amp;quot;newpage.html&amp;quot;&amp;gt;Click here to go to newpage.html&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How Links Work==&lt;br /&gt;
&lt;br /&gt;
There are three main types of links.  This section will discuss them.&lt;br /&gt;
&lt;br /&gt;
===Page-Relative Links===&lt;br /&gt;
&lt;br /&gt;
A page-relative link gives the location of the new page relative to the location of the current page.  It cannot start with a forward slash.&lt;br /&gt;
&lt;br /&gt;
An example of a page-relative link is:&lt;br /&gt;
 &amp;lt;a href=&amp;quot;aFolder/aPage.html&amp;quot;&amp;gt;Go to aPage&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above link will start in the current folder (as seen by the web browser in the current URL) and navigate to the '''aPage.html''' page within the '''aFolder''' sub-folder.  For example, if the current URL is '''&amp;lt;nowiki&amp;gt;&amp;quot;http://someSite.com/someFolder/somePage.html&amp;quot;&amp;lt;/nowiki&amp;gt;''', then the link would take you to '''&amp;lt;nowiki&amp;gt;&amp;quot;http://someSite.com/someFolder/aFolder/aPage.html&amp;quot;&amp;lt;/nowiki&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Site-Relative Links===&lt;br /&gt;
&lt;br /&gt;
A site-relative link gives the location of the new page relative to the root of the current site.  It must start with a forward slash.&lt;br /&gt;
&lt;br /&gt;
An example of a site-relative link is:&lt;br /&gt;
 &amp;lt;a href=&amp;quot;/aFolder/aPage.html&amp;quot;&amp;gt;Go to aPage&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above link will start at the root of the site and navigate to the '''aPage.html''' page within the '''aFolder''' folder.  For example, if the current URL is '''&amp;lt;nowiki&amp;gt;&amp;quot;http://someSite.com/someFolder/somePage.html&amp;quot;&amp;lt;/nowiki&amp;gt;''', then the link would take you to '''&amp;lt;nowiki&amp;gt;&amp;quot;http://someSite.com/aFolder/aPage.html&amp;quot;&amp;lt;/nowiki&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Absolute Links===&lt;br /&gt;
&lt;br /&gt;
An absolute link gives the entire location of the new page, including the site.  It must start with '''http://''' or '''https://'''(for secure links on SSL secured sites).&lt;br /&gt;
&lt;br /&gt;
An example of an absolute link is:&lt;br /&gt;
 &amp;lt;a href=&amp;quot;&amp;lt;nowiki&amp;gt;http://aSite.com/aFolder/aPage.html&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;gt;Go to aPage&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above link will always go to '''&amp;lt;nowiki&amp;gt;&amp;quot;http://aSite.com/aFolder/aPage.html&amp;quot;&amp;lt;/nowiki&amp;gt;''' regardless of the current site, folder, or page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Considerations When Using URL Rewriting and Page-Relative Links==&lt;br /&gt;
&lt;br /&gt;
When using rewrite rules to change the URLs seen by the web browser, it is important to understand the impact on page-relative links.  For instance, given the URL '''&amp;lt;nowiki&amp;gt;&amp;quot;http://aSite.com/aFolder/aPage.html&amp;quot;&amp;lt;/nowiki&amp;gt;''', you decide that you want to use a rewrite rule so that visitors instead see the page '''&amp;lt;nowiki&amp;gt;&amp;quot;http://aSite.com/aFolder-aPage&amp;quot;&amp;lt;/nowiki&amp;gt;'''.  Since the browser interpolates the location of page-relative links based on the current location, all page-relative links on '''aPage.html''' will point to locations under the root folder when viewing the rewritten URL instead of pointing to locations under the '''/aFolder''' folder.  Here is an example to demonstrate:&lt;br /&gt;
&lt;br /&gt;
'''Contents of aPage.html:'''&lt;br /&gt;
 &amp;lt;a href=&amp;quot;somePage.html&amp;quot;&amp;gt;Go to Some Page&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When viewed at '''&amp;lt;nowiki&amp;gt;&amp;quot;http://aSite.com/aFolder/aPage.html&amp;quot;&amp;lt;/nowiki&amp;gt;''', the link on '''aPage.html''' would take you to:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://aSite.com/aFolder/somePage.html&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When viewed at '''&amp;lt;nowiki&amp;gt;&amp;quot;http://aSite.com/aFolder-aPage&amp;quot;&amp;lt;/nowiki&amp;gt;''', the link on '''aPage.html''' would take you to:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://aSite.com/somePage.html&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Davidd</name></author>	</entry>

	</feed>