A quiz:

<form><input name=q></form>
form.q == the HTMLInputElement.

<form><input name=q><input name=q></form>
form.q == an HTMLCollection of length 2.

<form><textarea name=q></textarea></form>
form.q == the HTMLTextAreaElement.

<form><input name=q><textarea name=q></textarea></form>
form.q == an HTMLCollection of length 2.

<form><img name=q></form>
form.q == the HTMLImageElement.

So what do you think form.q returns for this?:

<form><input name=q><img name=q></form>

Give your answers in the comments. No cheating!
Shared publiclyView activity