Por que <table> não é permitido dentro de <p>
Porque não pode<p>
ser aninhado dentro<table>
? Qual é a correção que eu poderia fazer? Removendo o<div>
e<p>
tags corrompem meu design. Como o site segue um projeto fornecido pelo cliente.
Eu tenho o seguinte código e funciona bem no VS2008, mas recebo avisos:
<div class="right_articles">
<p>
<table>
<tr>
<td>
<img alt="Img not found" src="images/ribbon.gif" style="width: 155px; height: 125px;" />
</td>
<td>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
</td>
</tr>
</table>
</p>
<p> </p>
<p>
<table>
<tr>
<td>
<img alt="Img not found" src="images/medal.gif" style="width: 155px; height: 125px;" />
</td>
<td>
<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
</td>
</tr>
</table>
</p>
</div>
Aviso 1 Esta tag final não possui uma tag inicial correspondente. E: \ WebSite4 \ test.master 121 Aviso 2 Validação (XHTML 1.0 Transitional): O texto não é permitido entre as tags de abertura e fechamento do elemento html '. E: \ WebSite4 \ test.master 5 Aviso 3 Validação (XHTML 1.0 Transitional): O elemento 'form' não possui sua tag de fechamento. E: \ WebSite4 \ test.master 21 Aviso 4 A classe ou o valor CssClass não está definido. E: \ WebSite4 \ test.master 33 Aviso 5 O arquivo 'spacer.gif' não foi encontrado. E: \ WebSite4 \ test.master 116 Aviso 7 Validação (XHTML 1.0 Transitional): Elemento 'img' está faltando atributo obrigatório 'alt'. E: \ WebSite4 \ test.master 116 Aviso 8 Validação (XHTML 1.0 Transitional): O elemento 'table' não pode ser aninhado dentro do elemento 'p'. E: \ WebSite4 \ test.master 78 Aviso 9 Validação (XHTML 1.0 Transitional): O elemento 'table' não pode ser aninhado dentro do elemento 'p'. E: \ WebSite4 \ test.master 93