DEV Community

Discussion on: Those HTML Elements You Never Use 🌚🕵🏿

Collapse
 
akshay9677 profile image
Akshay Kannan

<base> is also another nifty little tag that we can use to specify the base urls for all the anchor tags after it. For example we can add the base tag with a url at the top of our webpage and do something like this,

<html>
    <head>
        <base href="https://twitter.com" target="_blank">
    </head>
    <body>
        <p>Go to twitter <a href="home">home page</a>.</p>
    </body>
</html>
Enter fullscreen mode Exit fullscreen mode