As in the title: can the checkbox be checked by default in the stylesheet, and not in the embedded HTML attribute?
Example from w3schools.com, the βcarβ checkbox is checked:
<form action="demo_form.asp"> <input type="checkbox" name="vehicle" value="Bike"> I have a bike<br> <input type="checkbox" name="vehicle" value="Car" checked> I have a car<br> <input type="submit" value="Submit"> </form>
I check the box "I agree to the Terms of Use", and because of the clumsy website I am doing this, I can not create inline CSS. Instead, I can assign this field to the css class and edit the class in a larger stylesheet.
If this simplifies, this will be the only checkbox on the page.
source share