Menu
Coddy logo textTech

Buttons zum Öffnen & Schließen

Lektion 3 von 13 im Kurs Sidebar | Front-end-Projekt von Coddy.

challenge icon

Aufgabe

Einfach

1. Erstellen Sie unter der Schaltfläche 'Open' ein div mit der id und class - 'sidebar'.

2. Erstellen Sie in 'sidebar' eine Schaltfläche mit der ID 'closeSidebarBtn' und dem Text 'Close'.

Probier es selbst

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

Alle Lektionen in Sidebar | Front-end-Projekt