What is the difference between a hyperlink and a permalink. Please provide an example explaining the difference of them.
1 Answers
They both have to do with uniform resource indicators (URIs), but they are otherwise fairly different concepts. To set the stage, I'll define URI first. A URI is an address that can refer to a page or concept from the web. An example of a URI is https://example.com/page.html.
A hyperlink is what links to a URI in an HTML document. The code for a hyperlink looks like <a href=https://example.com/page.html>Anchor Text</a> and it renders showing the anchor text. When you click on it, it takes you to the URI. Most people say "link" rather than hyperlink, and URIs are sometimes colloquially called "links" as well.
A permalink is a URI in a content management system (CMS) meant to be the permanent home for a piece of content. The need for permalinks comes from the practice of blogging where the home page of the blog often shows the full text of the most recent blog posts. This list is called the "blog roll." Because the content on the main page shows only the most recent content, each blog post needs a separate long-lasting URI which is called a "permalink." So if the blog roll is on the URI https://example.com/ the permalink for the most recent blog post shown there might be https://example.com/my-blog-post. You could use either URI to view the blog post right now, but only the latter of those URIs would be expected to show the same content in the future. Permalinks aren't always truly "permanent." They can be changed with redirects or return an error status if the content is deleted.
- 98,758
- 18
- 137
- 361
leaptofrogans:Network-Name*Site-Name: yes you can include that as "hyperlink" in your HTML code, yet the browser has no idea what it is and at best can just launch an external client trying to implement it (as some did fortelnet:, ortel:or others schemes) – Patrick Mevzek Mar 08 '22 at 21:22