base syntax
Syntax base element
- start tag required: <base>
- has no end tag, it's a void element
Examples base element, void
1 2 3 4 5 6 7 8 9 10 | <!doctype html> <> <> <>... <⁄> <> <⁄> <> <⁄> <⁄> |
Video demonstration base element, syntax
HTML5 base element, syntax Tutorial
min | video details |
---|---|
00:01 | open html demo file in Notepad++ |
00:05 | base tag is not present |
00:06 | base tag goes in head section |
00:11 | adding the base tag in page, before the link element |
00:15 | base SYNTAX: has only the start tag: <base> has no ending tag; has no content; it's a void element |
00:16 | Note: base tag must have at least one of the two attributes or both of them: href, target, therefore we have the next 3 possible complete (= with attributes) syntaxes: <base href="url"> <base target="value"> <base href="url" target="value"> |