Difference between Label and Literal controls in ASP.Net
1. Label control (by default) is rendered as HTML Tag i.e. the Text is enclosed within the HTML Tags. When AssociatedControlID property is set for the Label control it is then rendered as HTML
1. Literal control is rendered as is i.e. it is not enclosed within any HTML Tags.
2. Literal control cannot be styled as it does not use any HTML tag.
4. Generally used for adding HTML content on page for example suppose you want to add HTML
Tag and if you would use Label it would not be correct HTML since as per W3C Standards an HTML
cannot be rendered within a or