Hi, guys.. can you all figure it out why my "placeholder" for message not appear? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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
Nikitha Rai
Nikitha Rai - avatar
4 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
Nikitha Rai
Nikitha Rai - avatar
+ 2
16th Sep 2019, 2:26 PM
Nikitha Rai
Nikitha Rai - avatar