timestamp in JavaScript: The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC. Syntax [ad type=”banner”] Get a UNIX timestamp with Javascript Return value A…
Double and Triple equals operator in PHP A double = sign is a comparison and tests whether the variable / expression / constant to the left has the same value…
Definition and Usage of Visibility Property : The visibility property specifies whether or not an element is visible. Tip: Even invisible elements take up space on the page. Use the display property to…
To reload cached CSS/JS files : The easiest way for you is to use some kind of versioning, so that the browser automatically downloads the new, refreshed version of your…
PROBLEM: How to remove the orange or blue border (outline) around text/input boxes? It only happens on Chrome to show that the input box is active. Here’s the input CSS…
PROBLEM: We have the following CSS and HTML code: The header section is fixed height, but the header content may change. We would like to content of the header to…
Regular HTTP: Before you can understand these technologies, you have to understand classic HTTP web traffic first. A client requests a webpage from a server. The server calculates the response The…
Data Types in Java: Data types represent the different values to be stored in the variable. In java, there are two types of data types: Primitive data types Non-primitive data…
Clearfix : A clearfix is a way for an element to automatically clear its child elements, so that you don’t need to add additional markup. It’s generally used in float layouts where…
Three ways to resize images to fit a DIV : Two different CSS classes (one for width, one for height). Using the STYLE attribute within the IMG tag to manually…