Menu
Coddy logo textTech

열기 & 닫기 버튼

Coddy의 사이드바 | 프론트엔드 프로젝트 코스 레슨 — 13개 중 3번째.

challenge icon

챌린지

쉬움

1. 'Open' 버튼 아래에, id와 class가 'sidebar'인 div를 생성하세요.

2. 'sidebar' 안에 ID가 'closeSidebarBtn'이고 텍스트가 'Close'인 버튼을 생성하세요.

직접 해보기

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

사이드바 | 프론트엔드 프로젝트의 모든 레슨