

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Style input type button with CSS
The input type button can be a submit button or reset button. With CSS, we can style any button on a web page.
You can try to run the following code to style input type button:
Example
<!DOCTYPE html> <html> <head> <style> input[type=button] { background-color: orange; border: none; text-decoration: none; color: white; padding: 20px 20px; margin: 20px 20px; cursor: pointer; } </style> </head> <body> <p>Fill the below form,</p> <form> <label for = "subject">Subject</label> <input type = "text" id = "subject" name = "sub"><br><br> <label for = "student">Student</label> <input type = "text" id = "student" name = "stu"><br> <input type = "button" value = "Button"> </form> </body> </html>
- Related Questions & Answers
- Style input type reset with CSS
- Style input type submit with CSS
- HTML DOM Input Button type Property
- Style Input Fields of a form with CSS
- Style every checked <input> element with CSS
- Style every disabled <input> element with CSS
- Style every enabled <input> element with CSS
- Setting List Style Type using CSS
- Setting List Style Type in CSS
- Usage of CSS list-style-type property
- Style all <input> elements with a valid value with CSS
- Style all <input> elements with an invalid value with CSS
- Style <input> element with no "required" attribute with CSS
- Style <input> elements with a "readonly" attribute with CSS
- Style <input> element with no "readonly" attribute with CSS
Advertisements