Menu
Coddy logo textTech

Recap Challenge

Part of the CSS Mastery section of Coddy's HTML journey — lesson 11 of 43.

challenge icon

Challenge

Easy

In this recap challenge, you'll combine all the interactive pseudo-classes you've learned to create a fully interactive navigation button.

Your task is to style the given HTML code with the following behaviors:

  • When a button is hovered over, it should change to a green background color and have a font size of 20px.
  • When an input field is focused (clicked into or being typed into), it should have a yellow background color and a black border. You can use any border thickness and style you prefer - there's no specific requirement for these.

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <title>Recap Challenge</title>
    <style>
        /* General page styling */
        body {
            font-family: Arial, sans-serif;
            padding: 20px;
            background-color: #f0f8ff;
        }
        input {
            padding: 8px;
            font-size: 16px;
            border: 2px solid #ccc;
        }
        a {
            display: inline-block;
            margin-top: 10px;
            color: #0077cc;
            text-decoration: none;
        }
        /* Write your CSS here */

    </style>
</head>
<body>
    <h1>Join the Jungle Adventure!</h1>
    <p>Ready to embark on an epic journey? Sign up below:</p>

    <button>Start Adventure</button>

    <br><br>

    <input type="text" placeholder="Enter your explorer name">

    <br><br>

    <a class="more" ref="#">Learn more about the adventure</a>
</body>
</html>

All lessons in CSS Mastery