+ 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>

16th Sep 2019, 1:48 PM
Sanjay Kumar
Sanjay Kumar - avatar
6 Respostas
+ 8
Nikitha Rai Try this👇🏻 <input type="textarea" placeholder="write message here"/>
18th Sep 2019, 12:05 PM
Ayushi Gujarati
Ayushi Gujarati - avatar
+ 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 ☺️
3rd Dec 2019, 8:52 AM
3rdMOLAR 🐙
3rdMOLAR 🐙 - avatar
+ 2
ohh, alright..so, there is no way to put placeholder in <textarea>
16th Sep 2019, 2:08 PM
Sanjay Kumar
Sanjay Kumar - avatar
+ 2
16th Sep 2019, 2:26 PM
Sanjay Kumar
Sanjay Kumar - avatar