JavaScript Accordion JavaScript Programming Exercise

person icon Laurence Svekis

JavaScript Accordion JavaScript Programming Exercise

Javascript Project for beginners - create a fully functional JavaScript Accordion manipulate JavaScript DOM events

updated on icon Updated on Sep, 2023

language icon Language - English

person icon Laurence Svekis

architecture icon Development,Programming Languages,Javascript


30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 19,000+ top Tutorialspoint courses anytime, anywhere.

Course Description

Please note that the scope of this course using JavaScript creating a  JavaScript Accordion.  If you are looking for a more detailed JavaScript course this course is not for you.  Simple course with limited scope designed to be topic specific.

Learn more about JavaScript and how JavaScript ES6 can be applied to create amazing JavaScript projects.  Course is loaded with JavaScript Examples and perfect JavaScript for Beginners to learn more about JavaScript Online.  Writing JavaScript Code using vanilla JavaScript - no libraries no tricks this JavaScript tutorial will walk you through creating your JavaScript code with JavaScript for the Accordion Project.  Learn JavaScript with this step by step JavaScript Course.

Perfect course for JavaScript beginners to learn more about how to use JavaScript selection of elements and web page content.

Start with a simple JavaScript project creating an accordion that you can use and reuse on your website.

Apply modern JavaScript with explanations of code step by step learning.

JavaScript DOM Document Object model allows us to select and manipulate elements.  Add event listeners and create interactive web pages.

Course covers

  • Setup of basic HTML structure for accordion

  • Setup of simple styling to get started

  • Use of classes to control view area using JavaScript

  • Selection of elements and applying events

  • Click events with class selection and element class list updates

  • Source Code is included

  • Bonus PDF lesson guide

Taught by an instructor with over 20 years of Web Development experience.

Who this course is for:

  • Web developers
  • Web designers
  • Anyone who is building a website
  • Webmasters and web coders creating web content


What will you learn in this course:

  • How to create a JavaScript accordion
  • Apply JavaScript in a project


What are the prerequisites for this course?

  • Programming and coding knowledge
  • JavaScript
  • HTML and some programming experience
JavaScript Accordion JavaScript Programming Exercise


Check out the detailed breakdown of what’s inside the course

11 Lectures
  • play icon JavaScript Accordion Introduction 02:31 02:31
  • play icon Course Resources
  • play icon QuickStart on JavaScript needed for this project 05:08 05:08
  • play icon HTML setup for Accordion 02:18 02:18
  • play icon Setup CSS for the Accordion 02:00 02:00
  • play icon Accordion Interactions JavaScript 02:47 02:47
  • play icon Accordion JavaScript Event 03:40 03:40
  • play icon Toggle Active Class 03:34 03:34
  • play icon Hide all open panels 03:48 03:48
  • play icon Finishing Touches 03:50 03:50
  • play icon Section Conclusion 05:58 05:58

Instructor Details

Laurence Svekis

Laurence Svekis

Instructor, GDE, Application Developer

I'm here to help you learn, achieve your dreams, come join me on this amazing adventure today
Google Developers Expert - GSuite

Providing Web development courses and digital marketing strategy courses since 2002.

Innovative technology expert with a wide range of real world experience. Providing Smart digital solutions online for both small and enterprise level businesses.

"I have a passion for anything digital technology related, enjoy programming and the challenge of developing successful digital experiences. As an experienced developer, I created my first computer applications in 1990, and my first website in 1998.  I enjoy sharing my knowledge with others and want to help you share in the wonderful opportunities that the internet provides."

"Learning, understanding with a strong passion for education.  The internet has provided us with new opportunities to expand and share knowledge."

Want to learn more about becoming a web developer, do you want to experience the freedom that technology provides for us? Learn how to bring amazing things to life online.  Technology connects us all in many ways.  It opens up doors to those who embrace it and learn how to make those connections real.

"My courses are designed to help you achieve your goals, learn and update skills"

Background : An experienced web application developer, having worked on multiple enterprise level applications, hundreds of websites, business solutions and many unique and innovative web applications.  Web application development areas of expertise include HTML, CSS, JavaScript, JQuery, Bootstrap, PHP and MySQL. Anything to do with web creation and digital experience. Passionate about everything to do with web application development, programming to online marketing with a strong focus on social media and SEO. 

"Understanding technology provides a means to better connect with users.  It also opens so many doors.   Knowledge is the key to success and I want to help you experience what technology has to offer. I'm passionate about web technologies, and look forward to sharing my knowledge and experience with you!"

Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us