Select the best online CSS compression service. Select the best online CSS compression service Free HTML code optimizers
Technical optimization is the correct setting of the site for the highest possible interaction with search engines. It must be done immediately after installing the engine and while working with the primary filling of the site content. Now I will tell you how important aspects of optimization should be paid attention and make first.
The content of the article:
Proper Organization Site Structure
Any site must have the most convenient structure. Like people, search engines look at the site and evaluate the convenience of use. Any Internet resource must have nesting no more than three pages. That is, with the main one, the maximum of three clicks, the user should get to any page.
The most proper and simple structure for the information site will be:
Categories define sections. If the site about various diseases, then categories may be: cardiology, neurology, surgery ...
For more complex projects covering more information, the structure may be:
Thus, the structure is expanding, but remains understandable and logical. An example, on this site in the category Cardiology may contain subsections of heart disease and vascular disease. It is not forbidden to place material related to two or more sections.
For example, the material about hepatitis can be in the hepatology category and virology at the same time. The main thing is to comply with the hierarchy of materials. Construction of the correct structure is thought out at the stage of planning and collecting the semantic kernel.
Proper overflow of the site pages
I'm already preparing a more in-depth material about the transfinement and will soon lay out. Perelinka - Prostanovka links inside the site for convenient user navigation and page weight transmission.
To see an example of overgrinking, open any article in Wikipedia. Each contains many references to other articles. There is even a joke that with any article in Wikipedia in five clicks you can get to an article about Hitler. Of course, on your site in the article should not be 20 links to other materials, but 2-4 references are needed.
An important property of translets is the transfer of weight to other pages. When all pages are associated with each other, the weight camshare uniformly and general positions will grow. And when one specific page is promoted, then the weight from other materials on it is passed. To make it more clear, suppose you need to promote a medical site page with the "Pediatrician inspection" service. To do this, we will write several articles on children's diseases and everywhere, where we will mention the need to inspect the pediatrician, we will put references to our service.
Add bread crumbs and improve usability
Good structure Nothing if the user does not see it. In the head of the corner, when creating a site, it is necessary to put its usefulness for the final person and ease of use. If you have come to the site, will lose and will not be able to find more interesting materials for yourself, it means you have problems with usability.
Bread crumbs are navigation elements that show where the user is located relative to the entire site structure. These elements are usually placed in front of the title of articles and allow one click to go home into the category of placement of the article or in its subcategory.
Bread crumbs can be implemented with the help of simple plugins or making edits in the code. If they are not provided by the template used. But the usability will have to work. You need to think about the menu correctly. Make it visually noticeable and convenient for use. Thinking up different trivia, because even the usual lifting button up the page much easier for the user's life, allowing you to go to the header in one click, and not scroll through the frame already read.
Optimization of the Site Code HTML, JS, CSS, PHP
Today, users have become impatient and if the site opens at least for a second longer than a competitor, they will go to him. This is aware of this and search engines using download speed as one of the ranking factors. Therefore, it is important to make the site maximal money quickly. It does not contribute to heavy pictures, the vivacity of the layout code, the wrong server responses.
Optimization of site code
Now I will talk about the optimization of the code in general so that you get an initial idea. I will also prepare the material where I will tell you in detail and make a step-by-step code to optimize code. So, to optimize the code and make the site most attractive for search engines, we need:
- Squeeze pictures on, reducing the weight, which will make the download faster. Often, inexperienced webmasters are loaded to a large-resolution picture server. Which then by CSS are compressed for display. It is right to download pictures in the resolution in which they will be shown on the page. You can manually compress the pictures, drying them in Photoshop, or use one of the many services that can squeeze the pictures.
- Optimize HTML, JS and CSS. You need to make the page code as simple as possible. Regarding HTML, then remove all the commenting of the code, make a normal transfer of rows. For JS scripts, place them after the content so that the significant information appears on the screen earlier than the scripts. Exception - script and needed to display content. It will be unlikely to post all the scripts into one file. CSS - use style sheets for everything. Any information output should ideally occur through CSS, and not loaded every time a bulky code.
- Configure the correct redirects so that all pages respond to 200. And where you need a redirect with the transfer of page weight, for example, when changing its address, the code 301 was given. Exclude 5xx errors, and if they are repeated, then find the cause in the hosteter, third-party plugins and That's like and solve it.
Conclusion
The technical optimization of the site is the process is quite time consuming and requiring special knowledge. But using generally accepted recommendations and instructions, even the one who was first poured the engine for hosting yesterday.
- Read Articles on this topic:
Greetings Friends, from this article you will learn - how to clear the HTML code, how to optimize pictures, how to make it possible and optimize metategi, how to make the site faster, find out what you need to optimize the scripts on the site.
One of the important events for internal optimization of the site is page Optimization. Due to this, you can improve the overall quality of the resource, increase the page loading speed, increase the efficiency of interactive functions.
HTML Validation and Standardization
It is fundamentally important for search promotion and providing positive user experiences that the site can work equally well in any browsers, on different operating systems, in mobile and stationary computers.
To achieve overall unification, all sites are developed based on standard HTML versions. The most relevant today are versions of HTML 4.1 and HTML5. The latter although still in the development stage, the network has already published a huge number of such sites.
All the most popular browsers - Opera, Google Chrome, Mozilla Firefox In its latest versions, use the support of the new HTML5 hypership. The importance of using HTML5 to create sites is also in the fact that mobile computers based on the Android operating system do not support Flash technology and users will not be able to view video in SWF format.
HTML5-based sites are able to play video without the need to download and install Adobe Flash Player. The trend towards flashing is expanding, so it is useful for normal operation of sites to gradually refuse to use flash video and animated banners of this format.
Check the validity of the HTML code site You can free on the official website of the consortium of the World Wide Web, for example this
validator.w3.org.
Built-in validators are available in good design constructors and content management systems.
Cleaning HTML code
In the process of creating and subsequent editing web pages, the programmer leaves the technical notes on the pages, comments, forgets to delete unnecessary tags. All this not only slows down the work of the site, but also reduces the functionality. Due to simple removing HTML garbage You can speed up the download of the site pages literally by 35%.
There are also broken, broken links that do not lead anywhere, because the recipient has been removed. Such links do not like to search engines. The presence of broken links can be negatively reflected on the search for a resource.
Since broken links have a property from time to time to occur by themselves, it is necessary to regularly carry them out and delete them. This applies to both external and internal links. If the content management system does not have the search option options, you can use free online services.
http://creatingonline.com/site_promotion/broken_link_checker.htm.
http://anybrowser.com/linkchecker.html.
Optimization of graphic content
It is important to pay attention to the optimization of graphics, because to publish on the site site all images must be appropriately processed.
- To publish photos, it is advisable to use JPEG format, since this type of files provides better quality with minimal weight.
- To save pictures for which the quality is not very important, you can select the PNG format with the weight of the files of no more than 100 or 200 kb.
- All graphic files are needed, according to modern standards, save in a compressed form and in a separate directory on the server, but not to implement in web pages.
After editing a page containing the image, you must check the download speed. The page should appear in the browser no more than five seconds. Otherwise, the failures increase sharply.
All pictures and photos have metategi, which need to be optimized by adding keywords and to this improve their search on the Internet. The basic requirement to optimize image metategs is uniqueness. All pictures should have different names, pop-up tips and alternative texts.
Web Page Metage
Metagegi for different pages of the site must be unique. When duplicate tags are detected, the search engine gluits them and part of the pages will not be indexed. Experiments have shown that the uniqueization of the site metategs improves ranking and increases attendance by about 18%.
Special attention should be paid to the optimization of Title and Description tags
- The title of the page should consist of no more than that are permitted by the search system of the number of characters and keep the main keyword.
- The optimal number of words for the title is six.
- The page description is drawn up as a kind of selling text for the landing page and is usually made up of two short proposals. The first sentence contains the main keyword, and in the second - additional.
- Keywords MetaThey are not very important, but should be just in case.
For example, I generally removed the part of the code that is responsible for MetaTega from the engine itself.
Optimization of software elements - scripts
The principles of optimization of scripts are the same, ka for graphics - on the page do not place, save in a compressed form in a special directory.
Your page should be clean, the robot serving on your site should only see the pure page, on which there will be only an article, well, the necessary metaTags. Therefore, you need all scripts, counters, etc. Place in a separate file.
Text Content Optimization
SEO professionals have long been known that along with external and internal ranking factors of sites in search engines in the position in SERP are influenced by and so-called. Behavioral (custom) factors. Despite this, the latter pays insufficient attention. There are many reasons for this. First, not all SEO companies, especially engaged in the "conveyor" client promotion, can allocate resources to analyze the influence of behavioral factors, monitoring indicators of failures and the number of page views, the analysis of the traffic that goes to the site, etc. Secondly, the mid-level specialists still work according to the principle "done - bought links - Waiting for the position." Thirdly, some optimizers do not pay attention to custom factors for the reason that they do not consider it necessary, they are lynching or just do not know about them.
Nevertheless, on optimizing conferences, representatives of Yandex make it clear that the role of behavioral factors becomes more and more significant for the search engine. Among the many criteria affecting these factors is optimization of site pages, unfortunately, very often do not pay attention to the organization of promotion of Internet resources.
Why do you need it?
The answer is simple. The optimization of the code will not only speed up the loading of the pages, but also make a site more friendly to search engines - the code will become clean and beautiful, and its elements will be located in the right places. In addition, initially skeptical perceived by optimizers in November 2009 Google's statement that the download speed of a WEB document is one of the ranking factors, only confirms the fact that the optimization of the pages code should be engaged. Moreover, the optimizer can affect this factor.
Components of code optimization
It's no secret that search robots do not see the page design - they read her code, and they do it as well as a person - from above-down, from left to right. Information at the top of the code of certain elements, search engines give a greater priority. Thus, when SEO-crest, the most important elements or pages should be placed above the secondary elements. Below are some recommendations to optimize pages code that will make a campaign to promote it in search engines more efficient.
1. Title,Description I.Keywords - We immediately have a tag< head\u003e.
The behavioral factors have a significant impact of a non-protever layout. The site should be equally well displayed in all modern browsers with different permissions. Quite often, you can see when the Internet Explorer browser incorrectly displays the contents of the site, and the difference with Firefox and Opera cardinal. If at such a website, the percentage of IE users will be 20%, then the likelihood that the failure rate will increase significantly, increases. The user will not hold a lot of time on this site, it is likely that immediately brings the tab and never returns to the site again. Site layout should be assigned to professionals for which the concepts of "validity" and "crossbrusterity" are not empty sounds.
8. Optimization of pictures underweb.
This item relates more to usability, but not to say it is impossible. Some webmasters do not pay the optimization of pictures under Web due attention. However, each Internet user at least once got to the site where the text content was loaded quickly, and the graphic images opened with great difficulty.
It turned out that the point is not in the most fast connection speed to the Internet, but that the seeming mini-pictures actually have huge permissions, but instead of squeeze the image in a graphic editor, the projection in the page code prescribed the attributes of the pictures "Width "And" Height "values, 15 times, smaller than the real resolution of photographs. Sometimes it comes to the point that the web document uses images in format.BMP, as you know, having much large volumes in comparison with identical images in formats.jpg or.gif. As an example, you can bring the page about the popular Biathlon now - http://magdalena-neuner.narod.ru/nowfoto.html. To see in loading all photos, the user will have to download about 20 MB of traffic, since 90% of images are made there in the BMP format.
How to be and what to do in present conditions?
In most cases, in practice it turns out that the client ordered the creation of a site in a single web studio or freelancers (unfortunately, these categories do not always have the right and modern view of SEO-layout), and decided to promote in one of SEO companies , which, as a rule, such problems do not solve and promote what is their "conveyor" methods. In a successful SEO campaign in Yandex, in the current realities does not happen. Therefore, experts that provide professional services to promotion sites on highly competitive requests must have in their arsenal the department of programmers and vertexers, as well as provide services to create sites. To customers, in turn, it is desirable to focus on contractors who are successfully engaged in both the creation and promotion of sites at the same time or, at a minimum that has good technical support.
It is worth noting that the optimization of the page code does not guarantee an increase in positions on key requests, but not to pay attention to MatrixNet and behavioral factors, and it is necessary to work on it now.
Optimize HTML code and cascading style sheets (CSS) need to speed up the process of loading the site and content placed on it. Saving time and traffic, in general, a long time after optimization, it will turn out to be significant, even if the speed changes will not be very noticeable.
HTML-code optimization
In order for the HTML code to help quickly download the site, it must comply with several conditions:
- Be a simple and informative. After checking it on validity, you need to correct the errors so that the bots are easier to analyze it. The code must clearly represent the page structure.
- The main components of pages, such as headlines, pointers, information blocks must be easily determined.
- Exemption code from extra information, making them into separate files (for example, you can endure CSS and JS), will increase the download speed, which also simplifies the work of bots.
Having achieved the fulfillment of these conditions, the site can be made faster, convenient and increase the efficiency of indexing its bots of search engines.
Reduced CSS Code and Optimization
You can make the site code easier by reducing its volume. For this you need to perform several operations.
First of all, flash technologies, javascript, frames, text shown by picture should be avoided. All items, which perhaps, should be arranged in separate, external files (for example, CSS and JS, as already noted above). Will help to optimize the code special plugins. For example, you can install the AutoPTimize plugin, which automatically optimizes the HTML code, CSS, JS (if you put the corresponding ticks). You need to configure competent and convenient navigation through the site, which will be understood by users and correctly recognized by the search engines. This will increase the speed, quality of download and site indexation.
As for the optimization of CSS, it can be done independently or entrust it to a special resource or program. Manual optimization is a time-consuming and long process, besides, you can skip some errors. A program or service for optimization will be better eliminated by deficiencies, but may disrupt some functions that worked on the site, and after checking, the content may not be displayed, so they need to be corrected.
Some ways to improve the CSS structure in manual mode:
- Remove unnecessary gaps and rows of strings that overload the CSS file and make it difficult to work robots;
- Prescribe generalizing properties instead of several times repeated similar commands;
- Use laconic, understandable descriptions in the comments;
- Unusual fonts to prescribe with styles, not images;
- For pictures create Alt and Title (different for each image) so that their content is recognized by the bots of search engines;
- Apply to headers H1 tools - and further so that they are correctly recognized when indexing;
- Prescribe only those keywords that are used on the page to minimize their number;
- Use a variety of and brief meta-tags.
CSS and HTML Optimizers
It is convenient and easily optimized directly in the browser using special services, for example:
- Cleancss.com;
- CSS Optimizer;
- CSS Compressor;
- Cy-pr.com;
- plugin AutopTimize.
Specialists in SEO and IT are advised to use Cleancss.com, as it allows you to choose a compression ratio from low to the highest or pick up individual settings. After the high and highest levels of optimization, the site code takes a practically unreadable look, and changes will be almost impossible to make changes. Therefore, to start, use standard optimization. You can select specific content compression modes or optimize individual parameters: compression of fonts, images, removal of spaces.
The Cy-pr.com resource also has a similar tool for optimization, which facilitates the CSS structure by 25-30%, but there is no possibility to create a file with the code after performing the operation.
The rest of the services can rather radically change the code so that some functions on the site will stop working. Therefore, with their help, it is better to produce only local changes in the specific parameters of the site.
After optimization, you should check the performance of the site, correctly displaying the design, download speed. The situation is the situation when the pages and user site options are loaded not more than 3-5 seconds.
In order to check the degree of optimization and understand how efficiently the HTML code is now registered, you can use such services as:
- optimization.com;
- SEO-Cheklist portal;
- firebug plugin.
These tools will help check whether everything is done to reduce the amount of HTML code and improve its structure. At the SEO-Checklist resource, you can check the list, which has already been done to optimize, and what is not yet, and set the mark on business perfect.
Validation
You can check the site code for errors using validator validate services. Effective code check is carried out using Validator.w3c.org
If the system in the first check is given more semi-pious errors, do not be upset. After fixing a certain shortcoming, you can run the test again and the errors will become much smaller, since one disadvantage entails others and they will disappear when it is corrected.
The site with a corrected and optimized code has more chances of high positions in issuing than a resource with an overloaded HTML code in which errors are present.
The note: The adaptive version of the site is activated, which automatically adjusts to the small size of your browser and hides some site details for reading. Happy viewing!
Hello. Today we will continue the topic optimization HTML site layoutwhich began in the article about.
Let's first figure out why it is important and then let's turn to practical advice.
Properly made (welded) website template:
- Can significantly speed up the page loading (especially if before that everything was started);
- Will simplify the hitting of your pages in the top search utility (not only because of the fast download);
- Will increase your chances of full cross browser, that is, the same proper display of the site in all browsers;
- It will give a small guarantee that after the expiration of the many years you will not have to redo your sites for new browsers (or for new versions of old browsers).
I suggest to go from simple things to more interesting.
Part 1. Observe HTML and CSS standards
Just in case, I will say that in addition to HTML and CSS, we can still optimize JS and PHP parts of our sites, which are more resource-sensitive and significantly slow down the page loading speed. However, in addition to the download speed of pages, JS and PHP components do not affect the promotion of the site (just not to break it), unlike HTML markup, that is, the site template.
1.1 Always close the tags.
Including those that are not necessarily close, even if you are a hater xhtml standard, it is better to adhere to this rule. Example:
- List point
- List point
- List point
Each Li tag is closed, although it is not necessary.
1.2 Observe the correct tag nesting.
According to the principle: first opened - the latter closed. Example as not correct:
How correct:
1.3 Never describe CSS and JS inside HTML layout and tag attributes.
Never! In other words, forget about the existence attribute Style and tag Style.:
text
Describe all styles in separate file.css
You can use the STYLE attribute, only dynamically draw it with a javascript according to some action. For example, if you click on the picture, you need to change the color of the entire text on the page, then only in this case you can dynamically create the STYLE attribute with the desired values \u200b\u200bfor the desired tag (in this example for Body). Why? Because the search robots will not see him anyway and no one (including users) do not load an excess code, since the action occurs after the page is full.
However, in such cases, I would still recommend adding a pre-described CSS class the desired tag, rather than add the STYLE attribute to it. This is at least more convenient for later editing.
All the same is true to JS, the whole JS code should be in separate file, not inside your layout or worse - among tag attributes.
1.4 Forget about Caps Lock and capital letters.
Write all tags, attributes and their value line (small) letters, the same applies to CSS style tables.
Almost everything described above is in the official specification of HTML and CSS and refers to validity of the document.
Thus, I should note that sticking to W3C standards, that is, by observing the validity of the document - you get the following SEO advantages:
- Clean code, and, consequently, the additional trust of search engines to your site;
- Accelerated page loading, as the browser does not have to spend time on debugging a non-valid document.
However, it is not worth loaning on validity, you should try to adhere to it, but not to the detriment of the rest (time, functionality, etc.).
Part 2. Accelerate page loading - one of the ranking factors
2.1 Indicate the present sizes of the pictures.
Here is the essence of two things:
- Be sure to specify attributes width and height For tag img: This will speed up the loading of images, as the browser will know in advance what size should be displayed.
- Be sure to insert the picture of the same size, which specified in the attributes.
If you need a picture more than you need, then you do not need to save time on the fact that it can be reduced by means of HTML or CSS. Be kind to spend time, go to photoshop or its analogues and reduce the picture to the sizes that you want to see on the site, it may noticeably speed up the page loading.
2.2 Use CSS3 instead of JS.
JS can significantly slow down the download of your pages, and also continue to create a load after loading the page (a variety of effects, type of running string and other dynamic things), which can brake the work of the browser while the tab with the site will be open.
Today, many beautiful and interesting effects can be achieved only through the use of CSS3 properties (for example, Transition, Box-Shadow, Border Radius, Opacity, Transform, Background-Size) and skillful.
All of the above can be summarized by one phrase: wherever you can (suspect how) replace JS on CSS3, use CSS3 without informing! To search for such fragments, I advise you to explore the new capabilities of CSS3.
2.3 Less Photoshop - more CSS 3.
This motto has long been using many webmasters. You can create beautiful buttons and design elements with a smooth gradient, smoothed corners, shadows (internal and external) and beautiful text from above due to one CSS. Wherever you can replace graphic design elements on CSS Code - Do it! Example:
In addition to the CSS3 properties listed above, the RGBA color description format is also available.
To create a cross-browser gradient on CSS, you can use free services such as this colorzilla.com.
2.4 Combine images in CSS sprites.
Those images we could not draw with CSS 3 should be united into one single (ideally). This is necessary in order to reduce the number of requests to the server when loading the page. This item can significantly reduce the load on your web server, and at the same time and speed up the page loading, immediately 2 hare!
To better understand what we are talking about, just take a look at my CSS sprite:
Not bad, isn't it? The background picture is one on all elements, we only move it and substitute in the background of a certain element the desired part of the picture thanks to the Background-Position property, for example, as follows:
# Subs, # left, .mail, .rss, .vk (background: url (/images/1.png) No-repeat) #Subs (Background-Position: -28px -120px;) #left (Background-Position: -35px -20px;) .mail (Background-Position: -43px -50px;) .rss (Background-Position: -12px -8px;) .vk (background-position: -34px -56px;)
It will be better to make a sprite manually using photoshop, but it may seem to you enough difficulty, so you can use free services that will do everything for you, including the CSS code for you. I like the Spriteme service more. But I will not be tired of repeating: it is always better to do it manually, in particular, so sprite can work out significantly compact (in size and, therefore, by weight), which means more efficient.
2.5 Place JS files correctly.
All JS file connected files must be located as low as possible in the code, you do not need to connect them inside the "head" of the site (between HEAD tags) - it significantly slows down the page loading. The best option will connect JS files in front of the Body closing tag, that is, at the bottom of the page, there is no place below.
And one more very useful advice: Ideally, all your JS files need to be combined into one single, that is, we cut (Ctrl + X) code from all files and copy it to one so that in the end you are at the bottom, in front of the Body closing tag connected one Sole file:
...