The <!-- --> syntax is the HTML comment. This is the way to add your own notes into the code which will not display when the HTML is rendered by the browser. It is also a good practice for web-developers to use the comment tags to "hide" scripts from browsers without support for it (so they don't show them as a plain text).
To get button with line breaks you can use carriage return characters to break the line:
or just BR with a BUTTON tag:
This example shows you how to create custom tooltips, using just a pure CSS. In this examples we use "transform" feature of the CSS3 and some other tricks. Also you may find additional tooltip class provided, to show you the way you may...
There are many cases when people would like to create a cache for output of php pages on their website. This tutorial describes how to cache HTML output with PHP script.
This technique allows you to reduce a response time and increase...
Sometimes you need the page dynamically changes a texbox with a dropdown box. On the example below we show you how to perform this work. The first way demonstrates how to do this with remove() and append() jQuery methods and the second shows how...
This code demonstrates a simple way to validate IP address using preg_match() PHP function. This is a very simple code, that allows you to perform this task quickly with a minimum lines of code.
This short series of articles provides a few simple techniques for protecting yourself and your web site from spammers. This is the second article in the series, and covers the issue of protecting your web site from spammers. In this article we...
This code demonstrates how to create and parse the JSON data format of using array of PHP. It's a very simple code, that allows you to perform this task.
One of the important things about user input is to verify that the user has supplied the email that you have requested. The function below allows you to verify email address with easy.
The function that closes window is very useful when you use a pop-up window on your page, because it allows the visitor to easily close the window. You can also do it several ways: to use a button, a text link or make the window closes...
You may perform this work with two ways: pass it directly like described in sample #1 or use an anonymous function like its shown in sample #2.
This function allows you to pass two variables that represent ID of two elements on your page. What you click on one of them it hide it and shows another one.
This code allows to remove all duplicate elements from an array using PHP array_unique() function.
This code allows to list the contents of any given directory.
This code allows to pass filename in the $file_name variable and function will return file extension only.