+ 1

Why is that other text outside the <body> appears in the playground.check this code in playground 👇👇👇

Hello! friend, we can use'placeholder' at the place of value. The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format). The short hint is displayed in the input field before the user enters a value. Note: The placeholder attribute works with the following input types: text, search, url, tel, email, and password. Example: <!DOCTYPE html> <html> <body> <form action=k"https://www.youtube.com/; target="_blank" "> <input type="text" name="fname" placeholder="First name"><br> <input type="text" name="lname" placeholder="Last name"><br> <input type="submit" value="Submit"> </form> <p><strong>Note:</strong> The placeholder attribute of the input tag is not supported in Internet Explorer 9 and earlier versions.</p> </body> </html>

20th Aug 2019, 11:01 PM
Anistar
Anistar - avatar
0 Resposta