開閉ボタン
Coddyの「サイドバー | フロントエンド制作」コースのレッスン 3/13。
チャレンジ
簡単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>