I know this is over 10 years old, however asp.net 4.8 is still supported.
I would use a span and add the runat="server" attribute; This will work just like the asp:Panel.