Monday, January 27, 2014
Due to all these reasons, client side languages like JS and Jquery are used. As websites are mostly browser/ device dependent, so JS is heavily used. This can impact loading time and performance of the website. To overcome this, many JS frameworks and libraries are launched in the market. All these have their own pros and cons.
Difference between Framework and library.
A library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client.
A framework embodies some abstract design, with more behavior built in. In order to use it you need to insert your behavior into various places in the framework either by subclassing or by plugging in your own classes. The framework's code then calls your code at these points.
Monday, January 6, 2014
CSS3 is latest standard these days. It supports all previous features of css2 as well. Important modules added in css3 are:
- Box Model
- Backgrounds and Borders
- Image Values and Replaced Content
- Text Effects
- 2D/3D Transformations
- Multiple Column Layout
- User Interface
All these modules cover all latest features of css like gradient, shadow, effects, opacity etc.
Basics and advanced details of CSS3 can be covered from w3c website http://www.w3schools.com/css/css3_intro.asp w3c validator validate the css
CSS frameworks are in demand these. These frameworks are based on some backend environment. Dynamic stylesheet language, extends the CSS with dynamic behavior such as variables, mixins, operations and functions.
Benefits of using frameworks are:
- File size minimized.
- Code reusability increases.
- Encourage grid based design.
- No need to reinvent the wheel.
- Enables cross browser functionality.
- Speeds up development.
Most commonly used css frameworks are:
It runs on both server side (using Node.js) and client side (in modern browsers only).
Less.js need to add on page to run less stylesheet.
File extension is .less
2. SASS Framework: Refer http://sass-lang.com
Ruby-on-rails required in backend to run SASS file.
File extension is .sass or .scss
Thursday, July 2, 2009
XHTML (Extensible Hyper Text Markup Language): Its extended, cleaner and sticker version of HTML, almost identical to HTML4.0. It is based on XML application, so one can say its a combination of HTML and XML.
Basic difference between HTML and XHTML are:
- XHTML elements must be properly nested.
- XHTML elements must always be closed.
- XHTML elements must be in lower case.
- XHTML documents must have one root element.
XHTML syntax rules are:
- Attribute names must be in lower case.
- Attribute values must be quoted.
- Attribute minimization is forbidden.
- The id attribute replaces the name attribute.
- The XHTML DTD defines mandatory elements :Doctype declaration, html,head and body tags are mandatory in XHTML documents.
There are 3 types of XHTML DTD
- XHTML 1.1 Strict :for clean markup and free of presentational clutter. It declared as: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- XHTML 1.1 Transitional : It is used when user want to use HTML presentational features. It declared as: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- XHTML 1.1 Frameset : When HTML frames are used. It declared as: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"