w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



base nested within elements

Classified as: -

Parents, base

Children, base

Examples: base parents

Valid Syntax 1
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<html>
<head>
<title>... <⁄title>
<base>
<⁄head>
<body>

<⁄body>
<⁄html>
Invalid Syntax 2
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<html>
<head>
<title>... <⁄title>

<⁄head>
<body>
<base>
<⁄body>
<⁄html>

Syntax 1: Valid, the base element is nested within the head element
Syntax 2: Invalid, the base element cannot be nested inside the body element

base intro base optional base occurrences base browser display all browsing contexts override browsing contexts base resolves only URLs.. base syntaxbase href attributebase target attribute