w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



aside nested within elements, elements nested within aside

Classified as: flow content, sectioning content, palpable content

Parents, aside

Children, aside

Examples: aside parents, aside children

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

<aside>

<⁄aside>

<⁄body>
<⁄html>
Valid Syntax 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<html>
<head>
<title>...<⁄title>
<⁄head>
<body>

<aside>
<p>

<⁄p>
<⁄aside>

<⁄body>
<⁄html>
Invalid Syntax 3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
<head>
<title>...<⁄title>
<aside> ...<⁄aside>
<⁄head>
<body>

<h1>
<aside>
<main>

<⁄main>
<⁄aside>
<⁄h1>

<⁄body>
<⁄html>

Syntax 1: Valid, aside nested inside body element: allowed
Syntax 2: Valid, p nested inside aside: allowed
Syntax 3: Invalid, aside nested inside head: not allowed; aside nested inside h1: not allowed; main nested inside aside: not allowed

aside intro aside browser display aside syntax