Line 1: |
Line 1: |
− | <!DOCTYPE html> | + | <form action="/action_page.php"> |
− | <html> | + | <label for="cars">Choose a car:</label> |
− | <head> | + | <select name="cars" id="cars"> |
− | <style> | + | <option value="volvo">Volvo</option> |
− | code {
| + | <option value="saab">Saab</option> |
− | font-family: Consolas,"courier new";
| + | <option value="opel">Opel</option> |
− | color: crimson;
| + | <option value="audi">Audi</option> |
− | background-color: #f1f1f1;
| + | </select> |
− | padding: 2px;
| + | <br><br> |
− | font-size: 105%;
| + | <input type="submit" value="Submit"> |
− | }
| + | </form> |
− | </style> | |
− | </head> | |
− | <body> | |
− | | |
− | <h1>The code element + CSS</h1> | |
− | | |
− | <p>The HTML <code>button</code> tag defines a clickable button.</p> | |
− | <p>The CSS <code>background-color</code> property defines the background color of an element.</p> | |
− | | |
− | </body> | |
− | </html> | |