Salve.
Non mi è chiaro il motivo per cui un id venga indicato come
unico per un determinato elemento. Nell'esempio che riporto sotto il "Testo mio" tra <span> non dovrebbe essere avere lo sitile di #para1. O no? Invece cel'ha. Non dovrebbe venire ignorato l'id nello <span>?
Grazie.
<html>
<head>
<style type="text/css">
#para1
{
color:red;
}
</style>
</head>
<body>
<p id="para1">Hello World!</p>
This paragraph is not affected by the style.</p>
<span id="para1">Testo mio</span>
</body>
</html>

Rispondi quotando