w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



abbr nested within elements, elements nested within abbr

Classified as: flow content, phrasing content, palpable content

Parents, abbr

Children, abbr

Examples: abbr parents, abbr 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>
<abbr>
...
<⁄abbr>
<⁄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>
<abbr>
<a>
...
<⁄a>
<⁄abbr>
<⁄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>
<abbr>...<⁄abbr>
<⁄head>

<body>
<abbr>
<article>
...
<⁄article>
<⁄abbr>
<⁄body>

<⁄html>

Syntax 1: Valid, abbr element nested inside the p element: allowed
Syntax 2: Valid, a element nested inside the abbr element: allowed
Syntax 3: Invalid, abbr element nested inside the head element: not allowed; article element nested inside the abbr element: not allowed

abbr intro abbr browser display abbr syntaxabbr title attribute