XML requires a strict tree: <b><i>text</i></b> is valid, but the overlapping <b><i>text</b></i> is not. HTML browsers quietly fix overlaps; XHTML parsers reject them. Always close in reverse order of opening — last opened, first closed.
XML requires a strict tree: <b><i>text</i></b> is valid, but the overlapping <b><i>text</b></i> is not. HTML browsers quietly fix overlaps; XHTML parsers reject them. Always close in reverse order of opening — last opened, first closed.
<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>invalid: <b><i>x</b></i>
valid: <b><i>x</i></b></pre></body></html>▶ Open the interactive comic issue