← #132 Persist Console logs between page refreshes

Open all links in new tabs

Topics: HTML

We all know that setting the target="_blank" attribute to an individual link will open it in a new tab.

It's uncommon to see a real use case where you want all links on the page to be opened in a new tab. A site that only collects links of external resources might be an example.

In that case, rather than adding the attribute to all links, you just set it to the base tag:

<base target="_blank">
Fix a typo or suggest an improvement
#134 Use the datetime attribute when displaying dates, times