summaryrefslogtreecommitdiff
path: root/Base elements.md
diff options
context:
space:
mode:
Diffstat (limited to 'Base elements.md')
-rw-r--r--Base elements.md15
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