Example 3: Headings show the organization of material within the main content
Note that in HTML 4.01 and XHTML 1.x, heading elements only mark the beginning of sections. Because there is no markup to associate a heading element with the section content explicitly, users will assume that the heading applies to all following content until the next heading element is encountered.
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cooking techniques</title> </head> <body> <h1>Cooking techniques</h1> <p> ... some text here ... </p> <h2>Cooking with oil</h2> <p> ... text of the section ... </p> <h2>Cooking with butter</h2> <p> ... text of the section ... </p> </body> </html>