summaryrefslogtreecommitdiff
path: root/Base elements.md
blob: 7fade3c182d49040cb28803816641135d94b415a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
tags:
  - html
  - web
---
Allows setting default link URL and target. `href` defines base url for all relative links.
`target` sets where links should open:
- `_self` (default) current window & context
- `_blank` new window
- `_parent`can be self if not iframe
- `_top`same browser tab, but pop out to take entire tab

So `_top` link from an iframe will load our link in the entire tab.

Anchor links resolve the base. So they might always reload the entire page.