How to use a timer in JavaScript
How to use a timer in JavaScript Problem You are designing a web page and wish to add interactivity that will be occurring periodically. For example, it will be sending a request to an API every 10 seconds to retrieve information. For this post, we will use an example of updating a number incrementally every […]
Hide elements on mobile version using CSS
Problem You designed a web page and a particular element needs to appear only when the user visits the page from their Desktop. If the user visits the page from a smaller device, like a mobile or tablet, the element needs to be hidden. Solution CSS has a feature called media rules. Media rules allow […]
Hello World in HTML
Hello World in Html Problem No problem here, just need to write the simplest program when you start programming in the simplest language. The well-known Hello World program. The program when runs simply shows a “Hello World” message to the user (world). Code Save the above in a file with .html extension e.g. hello_world.html Open […]