DEL HTML anchors from posts as they are going to be added automaticly with new ssg

This commit is contained in:
Caffeine Fueled 2025-10-27 20:20:04 +01:00
parent 3484b45045
commit 3d28d5eee9
Signed by: cf7
GPG key ID: CA295D643074C68C
26 changed files with 263 additions and 263 deletions

View file

@ -2,7 +2,7 @@
In this post, I'll try to explain the syntax and use of an URL and the difference between URI, URL, URN, and URC.
# URL explained <a href="#url-explained" id="url-explained">#</a>
# URL explained
![url-explained](/images/blog/url-explained.png)
@ -20,7 +20,7 @@ Noted that the 'authority' can have the following syntax:
More information follow in the following sections.
## URI Scheme <a href="#scheme" id="scheme">#</a>
## URI Scheme
Always required, but often hidden by the application, e.x. most commonly in browsers as `http` or `https` is the default and implied.
@ -38,7 +38,7 @@ There is a large - but now retired - list of [Public registered and un-registere
As a side note, the double slashes were a choice of [Tim Berners-Lee, which he regrets since they have no other purpose](https://archive.nytimes.com/bits.blogs.nytimes.com/2009/10/12/the-webs-inventor-regrets-one-small-thing/?partner=rss&emc=rss).
## UserInfo <a href="#userinfo" id="userinfo">#</a>
## UserInfo
The UserInfo is optional, and often enough gets discarded by applications. Most browsers will ignore that information or warn you since it is a security risk.
@ -46,7 +46,7 @@ An example where it is used normally:
`ssh://username@example.com:2222`
## Host <a href="#host" id="host">#</a>
## Host
This is the host section. It can be the **same system, a hostname, an IP, or a domain**.
@ -55,7 +55,7 @@ Examples:
: `https://ittavern.com/url-explained-the-fundamentals/`
: `vnc://10.10.20.57:5900`
#### Domains <a href="#domains" id="domains">#</a>
#### Domains
Just a short digression into the world of domains.
@ -84,11 +84,11 @@ The **list of all TLDs** can be found in the [docs of IANA](https://data.iana.or
There are two kinds of TLDs - **Generic top-level domain (gTLD)** like .com .info .net and **Country-code top-level domain (ccTLD)** like .nl .de .us and some **combinations** like .co.uk or .com.au.
## Port <a href="#port" id="port">#</a>
## Port
Many schemes have a default port number, allowing most programs to hide the port number to avoid confusion for their users. `http` has port 80, `https` has port 443, `ssh` has port 22, and so on. The same applies to the transport protocol, for example, `TCP` or `UDP`. They are required, but most applications hide them, if the default port is being used, e.x. browsers hide the `:443` and show `:10443` if the used protocol is `https`.
## Path <a href="#path" id="path">#</a>
## Path
The path is a hierarchical naming system of **subdirectories or subfolders and files**, goes from left to right and is required. Unlike domains, **the path is case-sensitive**!
@ -99,7 +99,7 @@ Examples:
As a side note, the first example leads to an image, and in the second example, you might have noticed that the file is missing. The browser will open the `random-post` subfolder and the webserver is so configured that it provides the browser with a pre-definded file. Those files are Usually called index.html, but that can vary from setup to setup. That is also called 'Pretty URLs.'
## Queries <a href="#queries" id="queries">#</a>
## Queries
Carries optional parameters that can be used on the server or client site. Commonly use cases are referrer information, variables, option settings, and so on. The delimiters between parameters are `&` and `;`.
@ -108,20 +108,20 @@ Examples:
: `https://youtu.be/dQw4w9WgXcQ?t=4` *# on Youtube, it tells the client where to start the video*
: `https://youtu.be/dQw4w9WgXcQ?list=PLi9drqP&t=9` # multiple parameters containing the playlist and timestamp
## Fragments <a href="#fragments" id="fragments">#</a>
## Fragments
Fragments are optional references for a specific location within a resource. For example, HTML anchors like <a href="#fragments">this</a> in HTML files.
`https://ittavern.com/url-explained-the-fundamentals/#fragments`
#### Difference between Absolute and Relative URL <a href="#relative-url" id="relative-url">#</a>
#### Difference between Absolute and Relative URL
Until now, every URL was an absolute URL. Relative URLs are often enough just the `Path` and require a reference or base URL to work.
Examples:
: `/de-DE/same-page-different-lang`
: `/img/logo.png`
# Difference between URI and URL and URN and URC <a href="#difference-uri" id="difference-uri">#</a>
# Difference between URI and URL and URN and URC
URI stands for Uniform Resource Identifier and is a unique string of characters to identify anything and is used by web technologies. URIs may be used to identify anything logical or physical, from places and names to concepts and information. [2]
@ -134,7 +134,7 @@ The different subsets have different tasks: an URN identifies an item, an URL le
URL stands for Uniform Resource Locator and specifies where an identified resource is available and the mechanism for accessing it. Further details can be found above.
#### URN <a href="#urn" id="urn">#</a>
#### URN
Identifies a resource by a unique and persistent name without any location
@ -150,7 +150,7 @@ Every URN should have the following structure:
: **NID** *# namespace identifier (letters, digits, dashes)*
: **NSS** *# namespace-specific string that identifies the resource (can contain ASCII codes, digits, punctuation marks and special characters)*
#### URC <a href="#urc" id="urc">#</a>
#### URC
URC stands for Uniform Resource Characteristic or Uniform Resource Citation. According to [Wikipedia](https://en.wikipedia.org/wiki/Uniform_Resource_Characteristic), the former is the currently used name.
@ -162,7 +162,7 @@ That said, there was never a final standard produced, and URCs were never widely
---
# References <a href="#reference" id="reference">#</a>
# References
- https://cv.jeyrey.net/img?equivocal-urls
- https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL