Thor
Honorary Master
- Joined
- Jun 5, 2014
- Messages
- 44,236
I have known about the base tag since forever, but could never really see how I would use it up until a day ago when I started using and exploring CDNs
This changed my world:
<base href="http://myCDN.maxcdn.com/assets/">
This changed my world:
<base href="http://myCDN.maxcdn.com/assets/">
HTML:
<!-- Document Title -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Page Title</title>
<!-- Base URL to use for all relative URLs contained within the document -->
<base href="http://myCDN.maxcdn.com/assets/">
<!-- External CSS -->
<link rel="stylesheet" href="path/main.css">
<!-- In-document CSS -->
<style>
/* ... */
</style>