Posts

Showing posts from October, 2016

JSON

Introduction JSON stands for JavaScript Object Notation is one of most import scripting language. It is a lightweight text-based open standard designed for human-readable data interchange. JSON file contains .json extension. JSON contains concept of key/value pair like concept of mapping in Java. In case of JSON its object holds key/value pair. Each key of JSON is taken as a String but value of JSON is of any type. Each key and value is separated by Commas. What is JSON JSON stands for JavaScript Object Notation. It was designed by Dougals Crockford. It saves with .json extension. It was designed for human-readable data interchange. JSON supports array, object, String, number and values . JSON is easy to read and write than XML. JSON is language independent . Note: Because of JSON supports data structures like object and array. So it is easy to write and read data from JSON. Difference Between JSON and XML JSON XML Stands for JavaScript Object Not

Accordion

Image
Accordion is one of most important button class of CSS. It is most important button class during designing. Accordion plays a vital role when we want to toggle between hiding and showing large amount of content. Accordion allows us to hide content that is not immediately relevant to user.  Creating an Accordion we have to follow following steps: Step 1: <body> <h2>Accordion</h2> <button class="accordion" style="background-color:red;">Section 1</button> <div class="panel">   <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> </div> <button class="accordion" style="background-color:white;">Section 2</button> <div class="panel"> <p>Lorem