<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en-au"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title></title> <style> h1 { border: 3px solid red; } </style> </head> <body> <p>These <h1>s should all be left-aligned:</p> <h1 style="width: auto;">sample</h1> <h1 style="width: 10em;">sample</h1> <p>These <p>s should be (and are) left-aligned:</p> <p style="width: auto;">sample</p> <p style="width: 10em;">sample</p> </body> </html>