se usi una dtd significa anche che vuoi rispettare una regola nel scrivere una alberatura xhtml.
xhtml non è altro che html well-formed
xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<img alt="" src="" />
</body>
</html>
html
<html>
<body>
<img src="">
</body>
</html>
nota il tag img
Quindi se vuoi usare un xhtml deve essere well-formed se in devi validarlo usa una dtd.
Non c'è una norma precisa dipende quello che devi fare.
|