how to create an accordion using html only

Solutions on MaxInterview for how to create an accordion using html only by the best coders in the world

showing results for - "how to create an accordion using html only"
Christopher
07 Mar 2020
1//Accordion based on my Netflix
2//feel free to change the css as per your desire :)
3<!DOCTYPE html>
4<html>
5<head>
6	<meta charset="utf-8">
7	<title>Netflix-Accordion</title>
8	<link rel="stylesheet" type="text/css" href="stylesheet1.css">
9</head>
10<body>
11	<div class="introduction">
12		<p><h2>Hello guys, this is your guy Kinsley.</h2></p>
13	</div>
14<div class="wrapper-container">
15	<div class="wrapper">
16		<input type="checkbox" id="title1">
17		<label for="title1">What is Netflix</label>
18		<div class="content">
19			<p>Netflix is a streaming service that offers a wide variety of award-winning TV shows, movies, anime, documentaries, and more on thousands of internet-connected devices.
20
21You can watch as much as you want, whenever you want without a single commercialall for one low monthly price. There's always something new to discover and new TV shows and movies are added every week!</p>
22		</div>
23		<input type="checkbox" id="title2">
24		<label for="title2">How much does Netflix cost?</label>
25		<div class="content">
26			<p>Watch Netflix on your smartphone, tablet, Smart TV, laptop, or streaming device, all for one fixed monthly fee. Plans range from Ksh 700 to Ksh 1,450 a month. No extra costs, no contracts.</p>
27		</div>
28		<input type="checkbox" id="title3">
29		<label for="title3">Where can I watch?</label>
30		<div class="content">
31			<p>Watch anywhere, anytime, on an unlimited number of devices. Sign in with your Netflix account to watch instantly on the web at netflix.com from your personal computer or on any internet-connected device that offers the Netflix app, including smart TVs, smartphones, tablets, streaming media players and game consoles.
32
33You can also download your favorite shows with the iOS, Android, or Windows 10 app. Use downloads to watch while you're on the go and without an internet connection. Take Netflix with you anywhere.</p>
34		</div>
35		<input type="checkbox" id="title4">
36		<label for="title4">How do I cancel?</label>
37		<div class="content">
38			<p>Netflix is flexible. There are no pesky contracts and no commitments. You can easily cancel your account online in two clicks. There are no cancellation feesstart or stop your account anytime.</p>
39		</div>
40		<input type="checkbox" id="title5">
41		<label for="title5">What can I watch on Netflix?</label>
42		<div class="content">
43			<p>Netflix has an extensive library of feature films, documentaries, TV shows, anime, award-winning Netflix originals, and more. Watch as much as you want, anytime you want.</p>
44		</div>
45		<input type="checkbox" id="title6">
46		<label for="title6">Is Netflix good for kids?</label>
47		<div class="content">
48			<p>The Netflix Kids experience is included in your membership to give parents control while kids enjoy family-friendly TV shows and movies in their own space.
49
50Kids profiles come with PIN-protected parental controls that let you restrict the maturity rating of content kids can watch and block specific titles you dont want kids to see.</p>
51		</div>
52	</div>
53</div>
54</body>
55</html>
56