w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



base syntax

Syntax base element

Examples base element, void

Valid Syntax
only start tag, no end tag
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<html>
<head>
<title>... <⁄title>
<base>
<⁄head>
<body>

<⁄body>
<⁄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">
base intro base optional base occurrences base browser display base parents all browsing contexts override browsing contexts base resolves only URLs.. base href attributebase target attribute