w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



dfn nested within elements, elements nested within dfn

Classified as: flow content, phrasing content, palpable content

Parents, dfn

Children, dfn

Examples: dfn parents, dfn children

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

<p>
<dfn>
...
</dfn>
</p>

</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>
<dfn>
<a>...</a>
</dfn>
</p>

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

<dfn>
<article>...</article>
<dfn>...</dfn>
</dfn>

</body>
</html>

Syntax 1: Valid, dfn nested within p: allowed
Syntax 2: Valid, a nested within dfn: allowed
Syntax 3: Invalid, dfn nested within head, dfn: not allowed; article nested within dfn: not allowed

dfn intro dfn browser display dfn syntaxdfn title attribute