Javascript

Set of rules and innovations javascript from HTML 5

Many innovations that have occurred in the web world, creating different HTML2 standardizes as in 1994 or the most widely used HTML 4 in 1997. The problem arises for the programmer when each browser implements these new developments is uneven, you have to make distinctions always css and java script code, as in the case of the much hated internet explorer 6.

html5

Hopefully with this new standard which was due out this year but that the closure of the specification unfortunately delayed until 2012 if we can enjoy a standard is met perfectly in all browsers. Although at the moment as we discuss in the following graphs there are many who are far behind in the implementation of it:

As we see Microsoft explorer is the most delayed.

It must be said that although the standard takes to close, are already implementing some of these features today.

In this standard consisting HTML5? They are a set of rules and innovations both java script and css styles and HTML nomenclatures.

Among them we can highlight many features of CSS very attractive and helpful to the programmer, as the famous songs div round! We will not have to use images to invent those songs that are so popular in web 2.0. There are features that will make css across all browsers, as well as shaded text, color gradients, opacity, removing extra text in the layer, more fonts, …

Other features are the HTML directly as new objects (circles), use of graphics, new “input fields” for numbers, colors, email or phone, which in turn are self-evaluated, new micro data for use by explorers, Finally also new java script code which allows direct connection to a database, or drag and drop, so common in operating systems. We can see many of these developments on this website, although to see him have to use a browser that supports it as chrome.

The appropriate format for the graphics for the Web

It is essential to have knowledge about it then, depending on the format used, the quality and size of graphics varies significantly, positively if we choose the right or the opposite if we were wrong. The formats described below are best suited to optimize graphics and images make up as little space as possible with the highest possible quality:

GIFT: Graphic Interchange Format.
- Loss less compression format (loss less), the result of compressing the graph will be exactly like the original.
- It has a variable color palette, but the default is 256 colors, you can adjust the number appropriate to the job at hand. GIFT normally used for graphics, drawings and pictures of few colors and drawings.
- Supports transparency which means that in some areas of the chart you can see what’s underneath.
- You can also make animations.
- It has high compatibility with various browsers.

- Optimization GIFT: will reduce the color palette to lighten the weight of the files.

PNG: Portable Network Graphics
- It is also a loss less compression format, like the previous one. Used with bitmaps since compresses well.
- Your color palette is 256, but has the ability to accept true colors (millions of colors).
- Supports transparency, but no animation.
- Format of reduced use due to its incompatibility with older browsers, the new is fully supported.

- PNG Optimization: Follow the same steps with GIFT, reducing the color palette.

JPG: Joint Photographic Experts Group
- This format is oriented photographic format.
- With compression is a loss that is saved JPG file is not exactly like the original file.
- Compress good photos and has a palette of colors that can reach 16 million.
- No support transparency or animation.
- Compatible with any browser.

- Optimizing JPG: To optimize the quality is altered photographs of the same, higher quality, lower loss and therefore more weight. If the quality is lower but the file is less the image will be defective.