Tag: HTML

Recent Post

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.

Converting a number to a string with commas in JavaScript

How to print a number as a string with comma-formatting or other locale-specific styles.

Check if a HTML input element contains (no) user input

How to check if a user has provided input to a HTML input element.

Insert content to DOM at script tag location

Learn how to get and insert content to the DOM at the location of a script tag.

HTML Table of Contents Generator

A JavaScript solution for generating a table of contents for HTML content.

A guide to manipulating the DOM like a pro with JavaScript

Memorize these techniques to manipulate the DOM like a pro!