Multiple choice

Which attribute of the input tag is used to create a Text Box?

  1. input type = textbox

  2. input type = text

  3. input type = label

  4. input type = textfield

  5. textarea

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Input type=Text or simply input creates a standard textbox. This can also have a value attribute, which sets the initial text in the textbox.