Base tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Base tag

why you use the base tag?

28th Apr 2017, 2:34 AM
Rafael
4 Answers
+ 6
Among the use of base tag, you can work on a local copy of your hosted html files, and test them locally with hosted linked file, or with elsewhere hosted ones ( another domain name ), as relatives url are build upon this parameters instead default html location...
28th Apr 2017, 4:17 AM
visph
visph - avatar
+ 3
Because you can have your html file in a directory and all the links, css, javascript, and resources referenced to another directory. With the <base> tag you can imitate the behavior as if your file is in that other directory
28th Apr 2017, 2:41 AM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
0
I until dont understand for what you use it?
28th Apr 2017, 7:06 PM
Rafael