w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



s nested within elements, elements nested within s

Classified as: flow content, phrasing content, palpable content

Parents, s

Children, s

Examples: s parents, s children

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

<p>
<s>
...
</s>
</p>
<s>...</s>

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

<p>
<s>inaccurate text</s>
</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>
<s>...</s>
</head>
<body>

<s>
<article>
...
</article>
</s>

</body>
</html>

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

s intro s browser display s syntax