I have an existing code base and in some parts of the code the developer chose to surround the asp.net literal tag by an asp.net panel tag. But in other parts of the code the developer chose to surround the asp.net literal tag with the html div tag. In both cases, the literal tag is a place holder for the errors message displays. I am not sure why one would be chosen over the other.
Below are the examples:
<div class="shadowContent">
<div class="errorLabel" id="divErrorMsg" style="display:none">
<asp:Literal runat="server" ID="litError12" Text="Enter required fields." />
</div>
VS
<asp:panel runat="server" class="errorLabel" ID="pnlError1" Visible="false">
<asp:Literal runat="server" ID="literal1" />
</asp:panel>