w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



q nested within elements, elements nested within q

Classified as: flow content, phrasing content, palpable content

Parents, q

Children, q

Examples: q parents, q 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>
<q>
...
</q>
</p>

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

<p>
<q>
<b>
...
</b>
</q>
</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>
<q>...</q>
</head>
<body>

<q>
<article>
...
</article>
</q>

</body>
</html>

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

q intro q browser display q wrong usage exampleq syntaxq, blockquote: cite attribute