The Literal component is meant to emulate the asp:Literal control in markup and is defined in the https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.literal?view=netframework-4.8
Modespecifies how the content in the Literal component is renderedTextthe text content of the Literal component
=== "Web Forms"
```html
<asp:Literal
EnableTheming="True|False"
EnableViewState="True|False"
ID="string"
Mode="Transform|PassThrough|Encode"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
Text="string"
Visible="True|False"
/>
```
=== "Blazor"
```razor
<!-- Render raw HTML content -->
<Literal Text="Hello, <strong>World</strong>!" Mode="PassThrough" />
<!-- HTML-encode the output for safe display -->
<Literal Text="<script>alert('xss')</script>" Mode="Encode" />
<!-- Dynamic text from code -->
<Literal Text="@message" />
@code {
private string message = "Welcome to <em>Blazor</em>!";
}
```