w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



data nested within elements, elements nested within data

Classified as: flow content, phrasing content, palpable content

Parents, data

Children, data

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

<data>

</data>

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

<p>
<data>
<em>...</em>
</data>
</p>

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

<data>
<article>
...
</article>
</data>

</body>
</html>

Syntax 1: Valid, data nested within body: allowed
Syntax 2: Valid, data nested within p: allowed; em nested within data: allowed
Syntax 3: Invalid, data nested within head: not allowed; article nested within data: not allowed

data intro data vs time data syntaxdata value attribute