w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



ruby nested within elements, elements nested within ruby

Classified as: flow content, phrasing content, palpable content

Parents, ruby

Children, ruby

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

<ruby>

</ruby>

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

<article>
<ruby>
<a>
...
</a>
</ruby>
</article>

</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>
<ruby>...</ruby>
</head>
<body>

<ruby>
<article>
...
</article>
</ruby>

</body>
</html>

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

ruby intro ruby syntax