Category: html5


sessionStorage vs localStorage vs cookie applications

sessionStorage, localStorage and cookie all are solutions to store data on client side. They can be used for session management user preference management To setup never expiring tokens and many others. sessionStorage – persists...


pseudo elements vs pseudo classes

pseudo elements They allow you to style certain parts of a document. For example, you can style the first letter of each paragraph. MDN list of pseudo elements The following video demonstrates the pseudo...


window.onload vs document.onload

window.onload It is fired when the entire page loads, including its content (images, css, scripts, etc.) $(window).load() document.onload It is fired when the DOM is ready which can be prior to images and other...