Welcome, Guest
Username: Password: Remember me
Web développement questions

TOPIC: <base> HTML tag

<base> HTML tag 6 years 6 months ago #2

  • root
  • root's Avatar
  • Administrator
  • Posts: 2
  • Karma: 0
Si vous voulez utiliser <base> HTML tag faites attention à:
- Fermer le tag avec un self-closing ending: <base href="..." target="..." />
- Pour href:
a URI reference that resolves to a URL that will be used to resolve other URI references in the document.

Use percent escape codes as explained in the URL-encoding tutorial for any special characters in the URI reference.

If the value of the href attribute resolves to an HTTP URL, it may contain any of the following components:

protocol scheme, typically http: or else https:
username, followed by an "@"
host name or IP address
port number, which defaults to 80 for the http scheme and 443 for the https scheme
absolute or relative path
search query, indicated by "?"
If the protocol scheme, username, host name/IP address and port number are omitted the default is the current host - the same server as the base of the current document. If the path starts with a slash /..., it is an absolute path from the document root directory (AKA "web root") on the server. A relative path will be resolved relative to the base of the current document.

- Pour target:
target="_self" or target="" (default)

Si le path utilisé dans tout élément genre src ou css file commence par un "/..." alors ce path est relatif au ROOT du web server (donc base n'est pas pris en compte)!!!

Bonne journée,

Last Edit: 6 years 6 months ago by root.
The administrator has disabled public write access.
Time to create page: 0.026 seconds
Powered by Kunena Forum