+ 2
Hi, guys.. can you all figure it out why my "placeholder" for message not appear?
<form> <h4> Contact Us </h4> <input name="name" type="text" placeholder="Name"/> <br/> <input name="email" type="email" placeholder="Email" /> <br/> <textarea name="message" placeholder="Messages"> </textarea> <br/> <input type="submit" value="Send" class="submit"> <br> </form>
6 Respostas
+ 8
Nikitha Rai
Try this👇🏻
<input type="textarea" placeholder="write message here"/>
+ 3
Nikitha Rai You can try this :
<textarea name="massage" > Your Placeholder Massage
</textarea>
Fyi: textarea is different from input tag and it is a pair tag and you cant have the placeholder attribute for it. Instead anything goes between the code opening and closing tag will display as an editable content on the web page by default.
I hope this will help you ☺️
+ 2
ohh, alright..so, there is no way to put placeholder in <textarea>
+ 2
thank you Pranav pratap Singh