From time to time there are various pieces of HTML I need, but I just can’t remember the syntax. So here they are as a brain dump. When you make a copy of a web page all the links are usually from some remote location’s perspective, so to make your browser think you are looking at the remote site you can add a base reference. Now relative links (and usually links to images) are taken from the artificial base instead of the actual base which is usually on your computer.
<base href="http://example.com"/>If you want a redirect a visitor to another page there are several methods, but the simplest is to use static HTML. This method requires no extra work to be done by the web server as it can just deliver the page as normal. The content holds 2 items separated by a semi-colon. The first number is the number of seconds to wait before redirecting to the specified url.
<meta http-equiv="Refresh” content="3; url=http://example.com"/>They may seem like easy to remember tags, but I find myself looking them up all the time. Now as least I can look them up on my site instead of hopping over to Google.
No feedback yet
Form is loading...