What is tag for button? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is tag for button?

Which tag is used for button in html

3rd Feb 2022, 11:58 PM
Rohit Gaming YT
1 Answer
+ 5
This Tag <button type="button">Click Me!</button> or <!DOCTYPE html> <html> <head> <style> .button { border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; } .button1 {background-color: #4CAF50;} /* Green */ .button2 {background-color: #008CBA;} /* Blue */ </style> </head> <body> <button class="button button1">Green</button> <button class="button button2">Blue</button> </body> </html>
4th Feb 2022, 12:35 AM
Abu Habban
Abu Habban - avatar