Tag: HTML

Recent Post

Using querySelector and querySelectorAll

Select elements from the DOM using the full power of CSS selector syntax.

Load another JavaScript file from within a JavaScript file

Dynamically load another JavaScript file from within a JavaScript file.

Append an element to the DOM as nth child using insertBefore

Using insertBefore, an element can be appended to the DOM as a middle child.

Writing HTML in JavaScript made easy with template literals

With template literals, it is easy to write blocks of HTML in JavaScript.

Lazy image and iframe loading using pure HTML

Just set the HTML 'loading' attribute to 'lazy' for images and iframes!

Content modal tutorial

Learn how to display content in more detail to a user in a modal window

Random quotes generator

Create a random quotes generator app using HTML, CSS and JavaScript

Instant and dynamic HTML table creation with JavaScript

Create HTML tables instantly and according to desired preferences

Create a JavaScript countdown timer

Count down to an event with a vanilla JavaScript countdown timer

Build a mobile-friendly testimonials slideshow

Use HTML, CSS and JavaScript to build testimonials that users can cycle through