h2
is h1
, h2
or h3
.
h2
is incorrect.
h3
or any header less than h3
follows h2
.
h2
element, find the header element that follows it.h2
is h1
, h2
or h3
.h2
is h1
, h2
or h3
.h3
follows an h2
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #38 - Negative</title> </head> <body> <h2>The First Heading</h2> <p>Here is some demo text.</p> <h3>This Heading Is OK</h3> <p>Here is some more demo text.</p> </body> </html>
h4
follows an h2
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #38 - Positive</title> </head> <body> <h2>The First Heading</h2> <p>Here is some demo text.</p> <h4>The bad Heading</h4> <p>Here is some more demo text.</p> </body> </html>