You stick this in the head tag to define what relative paths in href and src parameters are relative to.
<base href="/">
This suggests that something like this...
<base href="https://www.w3schools.com/images/" target="_blank"">
...will keep you free of sprinkling target="_blank" everywhere in markup.
No comments:
Post a Comment