HTML base tag (Base URL Element)

By using the ’base’ tag in HTML, you are able to set the base URL for all the relative links in the document. It is defined in the ’head’ tag. In this video we look at how we can insert an image using the typical ’img’ tag, but leaving out the relative directory in the ’src’ attribute - instead we simply put the filename of the image. We then use the ’base’ tag to insert the folder path of the image. For your reference:
Back to Top