Site Logo

Nikita Hlopov's

Blog about web development

Blog About Archive Tags

Add and remove multiple classes in JavaScript for DOM element

12 Apr 2021
  • javascript

Vanilla JavaScript allows you to add or remove multiple classes for the DOM element in 3 different ways. Depending on your needs you may choose one of the following:

Continue reading →

Free code learning resources list for beginner Front-end web developers

23 Mar 2021
  • resources

These days the knowledge of coding and web development has become more accessible and free. I’d like to share with you free code learning resources list for Front-end developers.

Continue reading →

How to lazy load images, videos and iframes with JavaScript

09 Mar 2021
  • performance
  • javascript

Lazy load is a great way how to improve a website’s performance. There are few ways how you can achieve that.

Continue reading →

Pure HTML accordion with details and summary elements

17 Feb 2021
  • html

The accordion is a UI paradigm that consists of several stacked blocks. Each block consists of a label and a content section, clicking on a label either expands or collapses the section.

Continue reading →

A complete list of methods to add an element to DOM with JavaScript

10 Feb 2021
  • javascript

JavaScript API allows developers to add (append) an element to the DOM in several different ways. I’ll explain each one of them in detail.

Continue reading →
⟨ Previous Next ⟩

This work is licensed under a CC BY 4.0 License.
The code in this work is licensed under an MIT License.

Privacy policy