Menu
Coddy logo textTech

Open & Close Buttons

Lesson 3 of 13 in Coddy's Sidebar | Front-end Project course.

challenge icon

Challenge

Easy

1. Below the 'Open' button, create a div with the id and class - 'sidebar'.

2. In 'sidebar' create a button with the ID 'closeSidebarBtn' and the text 'Close'.

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
    <title>Sidebar</title>
</head>
    <body>
        <button id="openSidebarBtn">Open</button>
        <!-- Write HTML code here -->
        
        <script src="script.js"></script>
    </body>
</html>

All lessons in Sidebar | Front-end Project