[SalesForce] Attribute name “checked” associated with an element type “input” must be followed by the ‘ = ‘ character

I want to have a radio button to be selected as default in VF page.

<input type="radio" name="protocol" value="http" checked/>http
<input type="radio" name="protocol" value="https"/>https <br/>

But this throws up an error while saving the VF page

Attribute name "checked" associated with an element type "input" must be followed by the ' = ' character.

Any idea what is the right syntax?

Best Answer

You need to use following syntax:

checked="checked"