Using <meta> tag in HTML5

<Meta> tag is used to describe more details about web page. Using <meta> tag we can specify description, author, keywords etc. Search engines are usually use this details. Description When you search something in search engine you may notice that each link contains 2-3 line description about webpage. This description is specified by below snippet…. | Click here to read more.

Using MD5 for storing password in PHP and MySQL

Many people are store password directly on database. Due to which risk of misusing is increased. We mist need to perform certain operations on password before storing it, which is know as hashing or encryption of password. There are various range of hashing functions are available such as md5(), sha1(), crtyp(), hash(). In this article… | Click here to read more.

Create database user and assign it’s access to user in MySQL

If you want to create different users for your different database due to security reasons then this article is for you. In MySQL we can grant access/privileges of database to user as well as revoke or even delete user too. We can also assign full access to any user for any database by using below… | Click here to read more.

How to Minify files and Unminify files

Some times you got files which are Minified such as jquery.min.js or bootstrap.min.css. Here this .min refer minified version of file. If you are opened minified files then you may notice that minified files does not have any spaces, new lines, and even some time comments! It also replaces name of variables in case of… | Click here to read more.

Validation of input data using PHP

We must need to validate data before manipulating and performing operation on it. Most of websites contains client side validation however server side validation is important because client side validation may fail due to older verson of browser or disabled JavaScript. I am writing this post, in which include various tricks for validating different types… | Click here to read more.

Create HTML Try It using HTML and JavaScript

Certain time it’s really boring to update file through text editor and switch to browser reload page if not get proper output then switch back to editor! Instead of this you can use own custom HTML Try It like w3school’s. It’s pretty simple technique. You need to create one large textarea which contains your html… | Click here to read more.

Display loader while loading page using CSS & jQuery

In many situations you want to show loader to users while page is loading. After loading this page this loading icon/image should be gone away. You can use below snippet for this, in which i am using css animation for producing look of progress ring of windows 8. However you can use any image/icon. Add… | Click here to read more.

How to use data attribute of html5 in JavaScript, jQuery, CSS3

In HTML5 we can also define our own attributes. Normally those attributes are prefixed with data-*. However it is not compulsory but if you are not using data prefix then may not work in all browsers. Those attributes are very helpful because we can easily access those attributes with JavaScript, jQuery, and CSS. Even we… | Click here to read more.

Tricks & Tips for .htaccess

.htaccess is a configuration file for use on web servers running the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. .htaccess in commonly used by almost frameworks such… | Click here to read more.

Case converter in JavaScript

There are many situations in which you need to convert case of text. This post contains various snippet for case converting including Upper case, Lower case, Toggle case, Sentence case, and Proper case using JavaScript. Click here to download HTML file contains demo. For Upper case we can simply use toUpperCase() method of string: For… | Click here to read more.

Add Scroll to top button in your webpage

If you want to add Scroll to top button then you can simply use window.scrollTo() methid of JavaScript. But it will not provide smooth scrolling. For smooth scrooling you need to use below snippet of JavaScript & CSS. Note that this code using jQuery methods, so you need to use jQuery.min.js file into your page…. | Click here to read more.

How to Disable right click using JavaScript

Some time your page contains sensitive data for example your page contains images and you don’t want user download those images by right clicking, in this situation you need to disable right click. However many developers are saying “Don’t do it” because we can’t  prevent users for this! However if you still want to disable… | Click here to read more.