UI(User Interface) developmet Interview Questions with Answers which are mostly asked.

LD Opensource

How to create a JQuery Plugin?

JQUERY PLUGIN

(function($) {

$.fn.helloWorld = function( options ) {

// Establish our default settings

var settings = $.extend({

text         : ‘Hello, World!’,

color        : null,

fontStyle    : null

}, options);

        return this.each( function() {        $(this).text( settings.text );     if ( settings.color ) {        $(this).css( 'color', settings.color );    } 
    if ( settings.fontStyle ) {        $(this).css( 'font-style', settings.fontStyle );    }});

}

}(jQuery));

$('h2').helloWorld({    text        : 'Salut, le monde!',    color       : '#005dff',    fontStyle   : 'italic'});

What are the DOCTYPE Declaration?

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html xmlns=”http://www.w3.org/1999/xhtml”>

XHTML 1.0 Strict

This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

XHTML…

View original post 2,253 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s