I can't figure out how to put text "Your e-mail address: " left side of the field? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I can't figure out how to put text "Your e-mail address: " left side of the field?

<form autocomplete="off"> <label for="e-mail">Your e-mail address: </label> <input style="border-radius:5" name="Email" type="text" required /> <input style="color:#ffffff;background-color:#ab4fcd;border-radius:5" type="submit" value="Hot Mail"/> </form> https://code.sololearn.com/WRjR9Uagn8TN/?ref=app

10th Aug 2018, 11:09 AM
Farshad Assarpour
Farshad Assarpour - avatar
1 Answer
+ 1
You mean like inside the field? If so, use the placeholder attribute instead of the label element. https://www.w3schools.com/tags/att_input_placeholder.asp
10th Aug 2018, 11:31 AM
Janningā­
Janningā­ - avatar