+ 14

How to add a text on a button?

I don't know how to add a text on a button https://code.sololearn.com/W7my4b4xisBZ/?ref=app

22nd Jan 2019, 10:46 AM
《 李涎铨 》
《 李涎铨 》 - avatar
20 ответов
+ 16
Use <button>text</button> rather than <input>
22nd Jan 2019, 10:50 AM
ShortCode
+ 10
Use <button>text </button>
23rd Jan 2019, 10:11 AM
AKS
AKS - avatar
+ 8
Thanks for your answer... I already change it...
26th Jan 2019, 2:27 PM
《 李涎铨 》
《 李涎铨 》 - avatar
+ 5
<button>Your Text</button> I suggest you use javascript to make your like counter.
22nd Jan 2019, 1:21 PM
Arvind Tarpasa
Arvind Tarpasa - avatar
+ 4
Anubis I think addEventListener("click", function() {} ); is recommended and better way to do this, and more "powerful".
22nd Jan 2019, 7:26 PM
IdkWhoIAm AI
+ 4
<button type="button">Text</button> Always specify the type attribute for a <button> element
23rd Jan 2019, 2:20 AM
Gabriela Mancini
Gabriela Mancini - avatar
+ 4
THERE ARE SEVERAL WAYS OF ADDING TEXT ON BUTTONS 1 <button type=“button”> text </button> 2 <input type=“submit” value=“text”> 3 <input type=“button” value=“text>
23rd Jan 2019, 5:46 AM
sree harsha
sree harsha - avatar
+ 4
<button>text</button>
23rd Jan 2019, 6:46 PM
Hummaira
Hummaira - avatar
+ 2
if you are collecting likes <input id="inputbutton" type="button" value="LIKE"></input>
22nd Jan 2019, 12:33 PM
Danielov
Danielov - avatar
+ 2
Just add that text you want inside the opening and closing button tag. For eg <button type="button">Web</button>
22nd Jan 2019, 6:00 PM
Prabhat Kumar Singh
Prabhat Kumar Singh - avatar
+ 2
<button>Text</button> Try to add some CSS to beautify it!
23rd Jan 2019, 1:27 AM
Ediel Chedlyramber
Ediel Chedlyramber - avatar
+ 2
<input type=“button” value=“your text here!”/>
23rd Jan 2019, 6:18 AM
O. White
O. White - avatar
+ 2
add this to your code <button type="button">add text here</button>
23rd Jan 2019, 11:01 AM
Ornelio Reiph
Ornelio Reiph - avatar
+ 2
You have 2 ways. <button>Text</button> <input type="submit" value="TEXT">
24th Jan 2019, 6:05 PM
Berkay
Berkay - avatar
+ 2
you should use tag button: <button> text </ button> rather than <input>
29th Jan 2019, 10:45 PM
marcelo beserra
marcelo beserra - avatar
+ 1
<button>text</button >
22nd Jan 2019, 11:16 PM
Khaled Elsayed Mansour
Khaled Elsayed Mansour - avatar
+ 1
<button>YOUR TEXT</button>
23rd Jan 2019, 7:51 PM
Makar Vochenko
+ 1
<button>text</button>
15th Feb 2019, 6:19 AM
Aminu Muhammed
Aminu Muhammed - avatar
0
Fill in the blanks to create a valid unordered list. <> <>One</li> <li>Two<> <>
24th May 2022, 3:48 AM
Reem