Monthly Archives: March 2012

Javascript for…in loop

Javascript for loop is used to do a set of operations many times. At the same time for…in is used to loops through properties of an object SYNTAX: for (variable in object) { //statements } EXAMPLE: OUTPUT: XXX 1 92.5

Posted in Javascript Tagged with:

Code for getting WordPress logged user from external php file

We have used a Session variable for getting the WordPress logged in user id from an external php file. But it didn’t work once after upgrading the wordpress. Obviously the session variable setting page was overwritten by new wordpress update.

Posted in Php Tagged with:

How to apply CSS background styles in HTML

To make your web page look better than before apply the following CSS properties to sytle your code: background-color background-image background-repeat background-position BACKGROUND COLOR The background-color property specifies the background color to your page. EXAMPLE: BACKGROUND IMAGE The background-image property

Posted in CSS Tagged with:

How to use CSS inline and internal style sheet

CSS has 3 types of style sheets Inline Stylesheet Internal Stylesheet External Stylesheet INLINE STYLESHEET Inline CSS has the highest priority out of external, internal, and inline CSS. This means that you can override styles that are defined in external

Posted in CSS Tagged with: ,

CSS External style sheet

EXTERNAL STYLE SHEET When using CSS it is preferable to keep the CSS separate from your HTML. Placing CSS in a separate file allows the web designer to completely differentiate between content (HTML) and design (CSS). External CSS is a

Posted in CSS Tagged with:

Difference between CSS id and class

In addition to setting a style for a HTML element, CSS allows you to specify your own selectors called “id” and “class”. CSS ID SELECTOR Id Selector is used to specify the style for a single or unique element. CSS

Posted in CSS Tagged with:

How to use CSS selectors

CSS selectors are the heart and soul of CSS. They define which HTML elements you are going to be manipulating with CSS code. The CSS syntax consists of a set of rules. These rules have 3 parts: a selector, a

Posted in CSS Tagged with:

Introduction to CSS

It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). It is a way to control the look and feel of your web page in an organized and efficient manner. With CSS

Posted in CSS Tagged with: ,

How to embed Youtube videos in HTML

The easiest way to display videos in your web page is to use YouTube. If you want to display a video in a web page, you can upload the video to YouTube and insert HTML code to display the video

Posted in Html Tagged with: ,

Embedding videos in HTML

Inserting video in HTML is not easy because browsers did not have a uniform standard for defining the video files. Videos can be inserted to your web pages in two different ways. One method is to use the <embed />

Posted in Html Tagged with: ,