Posts for html5

Validate Phone number Inputs in HTML5

In this article, you will learn how to validate a phone number input using HTML5.Input elements of type tel allow a user to input telephone digits. What it however doesn’t provide, is validation to a particular format. To achieve the said validation, we can use the pattern attribute which allows us to slot in Regular […]

March 2, 2021 in Code examples

localStorage vs. sessionStorage – Explained

HTML5 local storage makes it possible to store values in the browser which can survive the browser session. Session storage is available inside the same browser window for as long as the window is open. When the browser window is closed, the session storage associated with that window is deleted. Multiple windows from the same […]

May 14, 2020 in Code examples