hai provato a vedere se nel testo html i tag si chiudono correttamente

magari è un errore di distrazione