HTML Define Base URL for Relative Links Code

title: Contents 
style: nestedList # TOC style (nestedList|inlineFirstLevel)
minLevel: 1 # Include headings from the specified level
maxLevel: 4 # Include headings up to the specified level
includeLinks: true # Make headings clickable
debugInConsole: false # Print debug info in Obsidian console

Overview

You can use the <base> tag to define the base URL for all relative URLs in a web page.

This is handy when you want to create a shared starting point for all relative URLs on a web page, making it easier to navigate and load resources.

Code Snippet

<head>
   <base href="https://noclocks.dev" target="_blank" />
</head>
<body>
   <a href="/blog">Blogs</a>
   <a href="/contact">Contact</a>
</body>

See Also


Appendix

Note created on 2024-04-18 and last modified on 2024-04-18.

LIST FROM [[HTML - Define Base URL for Relative Links]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/HTML/HTML - Define Base URL for Relative Links"

(c) No Clocks, LLC | 2024