Menu
Coddy logo textTech

Pulsanti di apertura e chiusura

Lezione 3 di 13 del corso Barra laterale | Progetto front-end di Coddy.

challenge icon

Sfida

Facile

1. Sotto il pulsante 'Open', crea un div con id e class - 'sidebar'.

2. In 'sidebar', crea un pulsante con ID 'closeSidebarBtn' e il testo 'Close'.

Provalo tu

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

Tutte le lezioni di Barra laterale | Progetto front-end

Esercitati da solo: Playground Web