francescosalvaggio
02-10-2010, 11:49
Ciao a tutti non riesco a validare questa semplice sezione di codice :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-Language" content="it">
<link rel="stylesheet" type="text/css" href="css/indice_style.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/indice_print.css" media="print">
<link rel="stylesheet" type="text/css" href="css/indice_style.css" media="handheld">
<title>PROGETTO</title>
</head>
<body>
<div id="angolo_sx"> </div>
<div id="riquadra">
<p id="anteprima_print">SOMMARIO</p>
<p id="anteprima">
<div id="sfondo_nero">S</div>
<div id="sfondo_rosso">OMMARIO</div>
</p>
</div>
</body>
</html>
mi sembra di capire che non posso mettere due corpi <div>...</div> dentro un solo tag <p> ... </p>
come posso risolvere ?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-Language" content="it">
<link rel="stylesheet" type="text/css" href="css/indice_style.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/indice_print.css" media="print">
<link rel="stylesheet" type="text/css" href="css/indice_style.css" media="handheld">
<title>PROGETTO</title>
</head>
<body>
<div id="angolo_sx"> </div>
<div id="riquadra">
<p id="anteprima_print">SOMMARIO</p>
<p id="anteprima">
<div id="sfondo_nero">S</div>
<div id="sfondo_rosso">OMMARIO</div>
</p>
</div>
</body>
</html>
mi sembra di capire che non posso mettere due corpi <div>...</div> dentro un solo tag <p> ... </p>
come posso risolvere ?