dd nested within elements, elements nested within dd
Classified as: -
Parents, dd
Children, dd
Examples: dd parents, dd children
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <><>...</></> <>...</> <>...</> <>...</> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <>...</> <>...</> <>...</> <>...</> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <>...</> </> <>...</> </> </> |
Syntax 1: Valid
dd nested within dl: allowed
dd elements come after their corresponding dt element: 2 dd afetr 1st dt, 1 dd after the 2nd dt
a nested within dd: allowed
Syntax 2: Invalid, dd placed before its corresponding dt element; dd must come after it
Syntax 3: Invalid, dd element(s) nested within elements(e.g. head, p, body) other than dl: not allowed