if yes then what we can do with cookies?
It can be for improving the user experience, keeping track of what users are doing on the site, or even for basic analytics. However, a few websites don't use cookies. Such sites are usually static pages built on simple HTML code and do not have any interactive elements.
Typically, an HTTP cookie is used to tell if two requests come from the same browser—keeping a user logged in, for example. It remembers stateful information for the stateless HTTP protocol.
You say static html, does this mean with javascript?
If so you can use javascript cookies to remember things like whether a menu was expanded, when the user last visited the site etc.
If you just mean pure html on its own then no, cookies can have no benefit to you and you can't write or access them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With