Posts

Showing posts from September, 2016
Difference between append(), prepend() and after(),before(). .append():  This function Insert the data or content inside an element at last index. Means it puts the content inside an element (making the content its child) specified by the parameter at the end of element in the set of matched elements. Whereas , .after():  This function puts the element after the specified element. Or you can say that it insert data outside an element (making the content its sibling) in the set of matched elements. .prepend():  This function Insert the data or content inside an element at first index. Means it puts the content inside an element specified by the parameter at the first of element in the set of matched elements. Whereas , .before():  This function puts the element before the specified element. Or you can say that it insert data outside an element (making the content its sibling) in the set of matched elements. Example:- 3. Before 2. Prep...
What is an API? An application programming interface (API) is a particular set of  rules ('code') and specifications that software programs can follow to communicate with each other . It serves as an interface between different software programs and facilitates their interaction, similar to the way the user interface facilitates interaction between humans and computers. How is it used? An example, You are buying an item in online through your credit card. You will provide credit card details and press continue button. It will tell you whether your information is correct or not. To provide these results, there are lot of things in the background. The application will send your credit card details to a remote application which will validate your information and send the result back your application. API is used in this scenario. When and where is it used? It's used when 2 or more separate systems need to work together to achieve something they can't do alone. ...
CSS3 Web Fonts - The @font-face Rule Web fonts allow Web designers to use fonts that are not installed on the user's computer. Your "own" fonts are defined within the CSS3  @font-face  rule. Different Font Formats TrueType Fonts (TTF) TrueType is a font standard developed in the late 1980s, by Apple and Microsoft. TrueType is the most common font format for both the Mac OS and Microsoft Windows operating systems. OpenType Fonts (OTF) OpenType is a format for scalable computer fonts. It was built on TrueType, and is a registered trademark of Microsoft. OpenType fonts are used commonly today on the major computer platforms. The Web Open Font Format (WOFF) WOFF is a font format for use in web pages. It was developed in 2009, and is now a W3C Recommendation. WOFF is essentially OpenType or TrueType with compression and additional metadata. The goal is to support font distribution from a server to a client over a network with bandwidth constraints....
What can JavaScript Do? Event handlers can be used to handle, and verify, user input, user actions, and browser actions: Things that should be done every time a page loads Things that should be done when the page is closed Action that should be performed when a user clicks a button Content that should be verified when a user inputs data And more ... Many different methods can be used to let JavaScript work with events: HTML event attributes can execute JavaScript code directly HTML event attributes can call JavaScript functions You can assign your own event handler functions to HTML elements You can prevent events from being sent or being handled And more ...