<input>
element with the type="text"
attribute. Here is the correct HTML code:<input type="text">
<input>
element is a self-closing tag, meaning it does not have a closing tag.type="text"
attribute specifies that the input field should accept text input.<textinput type="text"/>
is not a valid HTML tag. There is no <textinput>
tag in HTML.<input type="textfield"/>
is not a valid HTML type attribute. The correct value for a text input field is text
, not textfield
.<text type="inputfield"/>
is not a valid HTML tag. There is no <text>
tag in HTML.<input type="text"/>
is the correct answer. This option is the correct HTML code for creating a text input field.<input type="text">
(Option D).
![]() |
Explore Courses for Class 8 exam
|
|
![]() |
Explore Courses for Class 8 exam
|
|