0

What does <base> element do?

<base> element in html

31st Aug 2019, 11:22 AM
Sunali Rambukwella
1 Odpowiedź
+ 2
Given a page accessible at http://abc.xyz/index.html and an anchor link as follow <a href="/investor" /> which will point to http://abc.xyz/investor and now with base element we can change it to resolve into http://www.google.com/investor instead. Clear as mud? 😉 💡 Further reading @ MDN https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
31st Aug 2019, 11:42 AM
Zephyr Koo
Zephyr Koo - avatar