Contact form as the name implies is a medium of interaction between a website owner and the viewer. The contact us form allow visitors to communicate with the site owner from the website. Using the contact us form, visitors can easily submit their query, views, opinions and suggestions to the site administrator about the website, service or product that is been provided by the site.

Contact us form is very crucial in website for easy communication between the viewer and the site owner.Through this medium the viewer send the administration email base on the services been offered and this medium also help the administrator to have quick response to this client.

In this tutorial we are taking a tour on how to create a basic contact us form using PHP,CSS and HTML in building this system. Contact us notify the admin via email whenever there is a request from client or suggestion.

This tutorial is divided into three parts the PHP part which serve as the engine per say,HTML which is just like the body and also the CSS which gives the HTML a beautiful layout.We are going to take it one step at a time,so relax as we move on.

Steps Involves in Creating A Simple Contact Us FormBelow are some of the steps which we are going to be undertaking.

1. Create a Database if you have not done that and if you do not know how to create a database follow our tutorials on how to create a database here.

2. Create the HTML page.In this section we are going to create a HTML page that will collect our values from our client and submit it to our website database and admin email account by adding the given below code to our HTML page of our website.

3.The Next step,is to create our PHP page that will help in posting this values to our database and and to admin email account by verifying the email, checking for blank input etc,escaping some variables before posting it to our database.Copy and Paste the below code to PHP page and save with .php extension.

I believe this tutorial has help you a lot in carrying out this simple project on your website,do not forget to share with a friend by clicking on the share button below and you can also subscribe to get the latest update delivered to your inbox by clicking here

For most programmers who like writing articles on different type of programs related tutorials,In one way or the other will want their code to highlighter just like the one written on a well known code editor like sublime text, brackets etc. Today we are going to be looking at how to highlight your code on blogger with just a simple code highlighter known as PrismJs.Are still wondering what's PrismJs ? Check it's official page(website) for more information http://prismjs.com/, it's the second generation of syntax highlighting, it is more lightweight and that doesn't affect your page load time at all.

The overall adding procedure is the same as mentioned on the PrismJS official page but there are yet some modifications need to be made if you want it to work properly on Blogger blogs. In this tutorial i will provide the links to minified version of the codes, once you get the idea about adding it, you can use whatever version you want.

How To Add PrismJs on Your Blogger

• Firstly login into your blogger site.• After you have logged in go to your Dashboard and click on theme• Proceed by clicking Edit HTML• After the Edit HTML has loaded press CTRL + F and search for </head>• Copy and paste the code given below just before </head>

<link rel="stylesheet" href="http://prismjs.com/themes/prism.css"/>

<script type="text/javascript" src="http://prismjs.com/prism.js">

• Finally Click on saveTips:Make sure you backup your template before you carry out the procedure given above.

Tips : The links in the script and link tag is only for demo of the code, if you want to use different theme on your hosted website then you can download the version of your choice on PrismJS Download page, upload it to your hosting service and replace the links (prismjs.com/theme/prism.css and prismjs.com/prism.js) with your hosted file's links .

How To Display Code on Your Blogger Using PrismJs

The following example is for displaying HTML codes in your pages, to define any languages you have to edit language-xxx

<pre class='language-markup'>

<code>

// Your HTML Code here

</code>

</pre>

Tip: You can add the class for a language to any parent element and the children elements will inherit the defined language. It is very useful when you just want to display codes of the same language in a page also xxx refer to the language you are writing on eg php.

How To Implement Different Languages

To define languages you just have to change the language-xxxx in the class you can find in <pre> and <code> tags.

For HTML we will use this tags to wrap the display codes

<pre class='language-markup'>

<code>

// Your HTML Code here

</code>

</pre>

language-markup is used for HTML markups. You may use this for XML codes too. CSS will be wrapped into this tags

<pre class='language-css'>

<code>

// Your CSS Code here

</code>

</pre>

JavaScript can be wrapped into this

<pre class='language-javascript'>

<code>

// Your JS Code here

</pre>

</code>

JQuery can also be displayed with this. Want to learn more than check out the PrismJS homepage

The great thing about PrismJS syntax highlighter is that you can make the code blend with your site's overall theme by using different themes provided by PrismJS. There are the following themes available by default for it : default, dark, funky, okaidia, twilight, coy and solarized light

With a single addition of a CSS file you can change the theme for all PrismJS syntax highlighter instances on your blog.In the first step we added the default theme,

Are you a blogger that do write articles on programming and want to beautify the code to look like the code written on IDE google prettify will do that perfect for you without writing bunch of codes just to achieve that particular aim. This tutorial explains how to add Prettify syntax highlighter to your blogger blog.

What Does Prettify Code Highlighter Do?

It adds styles to code snippets so that token boundaries stand out and yourreaders can get the gist of your code without having to mentally perform aleft-to-right parse. The prettyprinter looks for `<pre>`, `<code>`, or `<xmp>` elements with the*prettyprint* class, and adds `<span>`s to colorize keywords, strings,comments, and other token types.

You can download the script herethe scripts and styles and serve them yourself. Make sure to include both thescript and a stylesheet Below are the syntax to include both the JS and CSS on your own website:

<link rel="stylesheet" type="text/css" href="prettify.css">

<script type="text/javascript" src="prettify.js"></script>

Then run the `PR.prettyPrint()` function once your page has finished loading.One way to do this is via the `onload` handler thus:<body onload="PR.prettyPrint()">