|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <link |
| 7 | + rel="stylesheet" |
| 8 | + href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" |
| 9 | + integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" |
| 10 | + crossorigin="anonymous" |
| 11 | + /> |
| 12 | + <link rel="stylesheet" href="style.css" /> |
| 13 | + <title>FAQ Collapse</title> |
| 14 | + </head> |
| 15 | + <body> |
| 16 | + <h1>Frequently Asked Questions</h1> |
| 17 | + <div class="faq-container"> |
| 18 | + <div class="faq active"> |
| 19 | + <h3 class="faq-title">Why shouldn't we trust atoms?</h3> |
| 20 | + <p class="faq-text">They make up everything</p> |
| 21 | + <button class="faq-toggle"> |
| 22 | + <i class="fas fa-chevron-down"></i> |
| 23 | + <i class="fas fa-times"></i> |
| 24 | + </button> |
| 25 | + </div> |
| 26 | + <div class="faq"> |
| 27 | + <h3 class="faq-title"> |
| 28 | + What do you call someone with no body and no nose? |
| 29 | + </h3> |
| 30 | + <p class="faq-text">Nobody knows.</p> |
| 31 | + <button class="faq-toggle"> |
| 32 | + <i class="fas fa-chevron-down"></i> |
| 33 | + <i class="fas fa-times"></i> |
| 34 | + </button> |
| 35 | + </div> |
| 36 | + |
| 37 | + <div class="faq"> |
| 38 | + <h3 class="faq-title"> |
| 39 | + What's the object-oriented way to become wealthy? |
| 40 | + </h3> |
| 41 | + <p class="faq-text">Inheritance.</p> |
| 42 | + <button class="faq-toggle"> |
| 43 | + <i class="fas fa-chevron-down"></i> |
| 44 | + <i class="fas fa-times"></i> |
| 45 | + </button> |
| 46 | + </div> |
| 47 | + |
| 48 | + <div class="faq"> |
| 49 | + <h3 class="faq-title"> |
| 50 | + How many tickles does it take to tickle an octopus? |
| 51 | + </h3> |
| 52 | + <p class="faq-text">Ten-tickles!</p> |
| 53 | + <button class="faq-toggle"> |
| 54 | + <i class="fas fa-chevron-down"></i> |
| 55 | + <i class="fas fa-times"></i> |
| 56 | + </button> |
| 57 | + </div> |
| 58 | + |
| 59 | + <div class="faq"> |
| 60 | + <h3 class="faq-title">What is: 1 + 1?</h3> |
| 61 | + <p class="faq-text">Depends on who are you asking.</p> |
| 62 | + <button class="faq-toggle"> |
| 63 | + <i class="fas fa-chevron-down"></i> |
| 64 | + <i class="fas fa-times"></i> |
| 65 | + </button> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + <script src="script.js"></script> |
| 69 | + </body> |
| 70 | +</html> |
0 commit comments