Menu
Coddy logo textTech

Botones de abrir y cerrar

Lección 3 de 13 del curso Barra lateral | Proyecto Front-end de Coddy.

challenge icon

Desafío

Fácil

1. Debajo del botón 'Open', crea un div con el id y la clase - 'sidebar'.

2. Dentro de 'sidebar' crea un botón con el ID 'closeSidebarBtn' y el texto 'Close'.

Pruébalo tú mismo

<!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>

Todas las lecciones de Barra lateral | Proyecto Front-end