Adding pre-selected values

Adding pre-selected values is pretty easy for inputs, you just add value="", but how do you add a pre-selected value for a radio and textarea?

1 Like

Hey @tera3071226920!

For <textarea> you can just put text between the opening and closing tags like so:

<textarea>Replace this line with your bio</textarea>

and that line is the alternative to the value attribute on an input elemnt

For radio buttons, you give it the attribute checked and the radio button will be checked on the page.

<input type="radio" checked />

Hope this helps