diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-05-06 23:09:23 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-05-06 23:09:23 +0200 |
commit | 78211f96953bc1a63570f2430cee4ad92c841ce4 (patch) | |
tree | 614db0456636442c7ef250f106f9f8b1d04e01e6 /Base elements.md | |
parent | bb5c734d7445097e94c4a602f5ce066a836dbead (diff) |
vault backup: 2025-05-06 23:09:23
Diffstat (limited to 'Base elements.md')
-rw-r--r-- | Base elements.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Base elements.md b/Base elements.md new file mode 100644 index 0000000..7fade3c --- /dev/null +++ b/Base elements.md @@ -0,0 +1,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.
\ No newline at end of file |