NaN: Warum sind <div></div> und <div /> verschieden?

Beitrag lesen

Hallo!

Warum werden beiden <div> Versionen verschieden dargestellt? Beides sind inhaltsleere divs.

http://tra.zoellich.de/tt.html

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
<head>  
  <title>tt</title>  
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<style type="text/css">  
  
div       {  
          width:121px;  
          height:121px;  
          margin-left:1em;  
          }  
  
</style>  
</head>  
<body style="font-size:22px">  
  
<div style="background-color:#BD5E3B;" />  
<div style="background-color:#DE6D46;" />  
<div style="background-color:#FA8C5B;" />  
<div style="background-color:#FF9F72;" />  
  
<div style="background-color:#BD5E3B;"></div>  
<div style="background-color:#DE6D46;"></div>  
<div style="background-color:#FA8C5B;"></div>  
<div style="background-color:#FF9F72;"></div>  
  
</body>  
</html>  

Gruß
NaN