w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



article nested within elements, elements nested within article

Classified as: flow content, sectioning content, palpable content

Parents, article

Children, article

Examples: article parents, article 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>

<article>

<⁄article>

<⁄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>

<article>
<p>

<⁄p>
<⁄article>

<⁄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>
<article> ...<⁄article>
<⁄head>
<body>

<address>
<article>
<main>

<⁄main>
<⁄article>
<⁄address>

<⁄body>
<⁄html>

Syntax 1: Valid, article nested inside body: allowed
Syntax 2: Valid, p nested inside article: allowed
Syntax 3: Invalid, article nested inside head: not allowed; article nested inside address: not allowed; main nested inside article: not allowed

article intro article browser display article syntax