haviors, and developers can block these using <code>preventDefault</code>. For instance, with a checkbox input, clicking it normally causes the browser to tick it&mdash;this is its default behavior. Here&rsquo;s an example that prevents the checkbox from being ticked when the user clicks it.</div>
<pre language="razor">&lt;label&gt;
    &lt;input type="checkbox" @onclick="_ =&gt; showMessage = true" @onclick:preventDefault /&gt;
    @if (showMessage)
    {
        &lt;span&gt;The checkbox can&rsquo;t be che