A cookie is a small text file with small pieces of data ( maximum size of 4KB ) that the web server stores on the client computer/browser . Cookies help to ensure the user gets the best experience on the website . In this project i've built small cookies consent box using html , css and javascript which is set cookies to the user browser .