12.
What is the correct HTML for adding a placeholder text in a text input field?
<input type="text" value="Enter your name">
<placeholder="Enter your name">Enter your name</placeholder>
<input type="text" text="Enter your name">
<input type="text" placeholder="Enter your name">
Correct: D
The correct HTML for adding a placeholder text in a text input field is to use the placeholder attribute within the <input> tag.