Styling-Form CSS - Tryit Editor for Web Developers
Edit This Code:
See Result »
<html> <head> <style> body { color: purple; } input[type="text"] { width: 200px; display: block; margin-bottom: 20px; background-color: lightgrey; } input[type="button"] { width: 100px; margin-left: 50px; display: block; background-color: hotpink; } </style> </head> <body> <form name="input" action="" method="get"> Firstname:<input type="text" name="Name" value="Shahzeb" size="40" > Lastname:<input type="text" name="Name" value="Khan" size="40"> <input type="button" value="Button"> </form> </body> </html>
Result: