フォームの色・サイズ
<html> <head> <title>フォームの色・サイズ</title> <style type="text/css"> <!-- input { width: 300px; font-size: 20px; background: #fc9; } select { width: 200px; font-size: 18px; background: #9fc; } textarea { width: 400px; height: 100px; color: red; font-size: 25px; background: #99f; } .submit { width: 100px; font-size: 20px; background: #ff6; } //--> </style> </head> <body> <form action="" method=""> テキストボックス<br> <input type="text" value="テキストボックス"><br> <br> プルダウン<br> <select> <option value="1">プルダウン1</option> <option value="2" selected>プルダウン2</option> <option value="3">プルダウン3</option> </select><br> <br> テキストエリア<br> <textarea>テキストエリア</textarea><br> <br> <input type="submit" class="submit" value="送信"> </form> </body> </html>
〔 実行する 〕