Tag: HTML

Recent Post

How to wait until a page has loaded in JavaScript

Learn about event that allow you to run code upon the completion of page loading states.

Insert an element or HTML block before or after an existing element

Using the insertAdjacentElement() or insertAdjacentHTML() methods.

Typewriter typing effect with JavaScript

Make text appear on screen as if it is being typed live using the setInterval() function!

Styling HTML Elements with JavaScript

JavaScript can style HTML elements directly or indirectly via the class attribute.

Using HTML data attributes in JavaScript and CSS

Data attributes allow you to store string data directly on HTML elements.

Preview a user image before it is uploaded

How to preview an image and check its dimensions and size before uploading.

How to manipulate HTML5 element attributes using JavaScript

We examine JavaScript's powerful toolkit of methods for editing HTML5 attributes.

How to clear all children within a parent element using JavaScript

Learn how to remove all child nodes and elements from within a parent element using JavaScript.

Add a new element to the DOM using JavaScript

You can insert HTML elements to the DOM dynamically using JavaScript.

How to upload a file using the Fetch API

You can upload a file using the Fetch API as part of a FormData object or as a standalone file.