Obtenir un code XHTML propre
Bonjour,
Est-il possible de faire en sorte que le code HTML généré par ASP.NET soit propre en terme de présentation du code.
Par exemple, le code suivant est généré par ASP.NET :
Code:
1 2 3 4 5 6 7 8
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><meta id="ctl00_headDescription" name="metaDesc" content="blabla blablabla..." /><meta id="ctl00_HeadKeywords" name="metaKeyword" content="mot mot mot" /><meta name="author" content="John DOE" /><meta name="reply-to" content="webmaster@john-doe.fr" /><meta http-equiv="pragma" content="no-cache" /><link href="~/App_Themes/default/default.css" rel="stylesheet" type="text/css" /></head>
... |
Peut-on ranger tout cela comme ceci (propre, donc...) :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta id="ctl00_headDescription" name="metaDesc" content="blabla blablabla..." />
<meta id="ctl00_HeadKeywords" name="metaKeyword" content="mot mot mot mot mot" />
<meta name="author" content="John DOE" />
<meta name="reply-to" content="webmaster@john-doe.fr" />
<meta http-equiv="pragma" content="no-cache" />
<link href="~/App_Themes/default/default.css" rel="stylesheet" type="text/css" />
</head>
... |