Form Question | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Form Question

<input name="name" type="text" />Name<br /> I'm trying to figure out how to get the word "Name" to show up inside the field instead of to the right of it. can someone please help me out here?

8th Mar 2018, 6:32 PM
Morey Wilson
Morey Wilson - avatar
3 ответов
+ 4
another option, <input type="#" placeholder="#">
8th Mar 2018, 6:44 PM
S.Jaime
S.Jaime - avatar
+ 3
Just add the placeholder attribute as... placeholder="Name" inside input tag
8th Mar 2018, 6:37 PM
Akshat Vira
Akshat Vira - avatar
+ 2
Thank you!
8th Mar 2018, 6:39 PM
Morey Wilson
Morey Wilson - avatar