What is the correct JSON content type?

If you are in a process of making custom web application and you need to send some data to the client, it may be necessary to set proper media type for the content. This is usually a case when you have to transmit arrays, objects, or any sort of attribute-value pairs of data. As result, …

How to disable text selection highlighting in CSS

Web browsers allow to select text elements on a page, but this may not be the desired option in specific situations. You may want to avoid such behavior when adding buttons, links or any other non-standard elements to your HTML code. You may add the following CSS code to your project and use "disable-select" class …

Simple PHP contact form

In this article, you will learn on how to build simple contact form in native PHP language without adding any other frameworks or libraries. This code may be useful when you want to build custom site or web application and your preference is to avoid any complex 3rd party tools. You need to start with …

What is PHP?

Today, we will describe what the PHP is. You probably have heard a lot about it, and even wrote some basic scripts. But if you'd like to learn history or language concepts, then reading this article is the right choice to do. The first version of this language was released many years ago, back on …

How to select an element by name in jQuery

It's very easy to select element by name in jQuery, please take a look at the following HTML code snippet: There are input elements with the name attribute set to "first-name", "last-name", "email" values. This is a good example of a simple user registration form and is a very popular case in web development. Now, …

How to detect which radio button is selected

Hello, if you need to detect which radio element is selected, then this article may help. We will show how to get value of the selected radio button from the group of such elements in your HTML form. For the beginning, we will use jQuery framework since it's very popular and easy to use solution. …

How to horizontally center a DIV element

Sometimes when making a web site, you may need to center your div element horizontally inside of another container on your HTML page. There are different methods and webmasters should know how to properly use all of them. We will describe all aspects of fixing this issue and you can choose the most suitable solution …

Starting blog about programming and software

Hello my dear and future readers, I am so excited about creating this post, since that’s beginning of the new and long journey. My next idea is to create well known and popular blog about latest technologies, programming tools and software. Most of the posts will contain information on how to solve issues while making …