Oui. Tant qu'il s'agit avant votre tag <html>
, ça devrait aller. Cela peut arriver, par exemple, si vous mettez une déclaration XML au-dessus. La déclaration XML, cependant, doit se produire au tout début du fichier.
Exemple:
<?xml version='1.0' charset='utf-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>This is an example</title>
</head>
<body>
<h1>This is an example</h1>
<p>
You might even put an xml stylesheet declaration up above your
DTD declaration, which would look like this:
<code><?xml-stylesheet type="text/xsl" href="transform.xsl"?></code>
</p>
<p>But you still can't put any HTML above your DOCTYPE. Sorry.</p>
</body>
</html>
De quoi avez-vous besoin pour les lignes avant le doctype? – Gumbo