Sunday, 1 September 2013

Previous Interview Question Next Interview Question
Home

What is wrapping in CSS3?

Wrapping is a vital property for proper display of contents in web pages. If wrapping is disabled then the user could not display and view long lines that goes outside the window boundary and thus becomes useless.

Definition:

The wrap() method wraps specified HTML element(s) around each selected element.

Syntax

$(selector).wrap(wrappingElement,function(index))

where wrapping element specifies what HTML element(s) to wrap around each selected element.It's compulsory.

Possible values:

HTML elements
jQuery objects 
DOM elements

function(index) is Optional. Specifies a function that returns the wrapping element 

index - Returns the index position of the element in the set

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment