In a time of the Web developers who just like to say that ' Tables are Evil ' and can ' t (or won ' t) explain why, this article wil L attempt to give your some solid reasons that people create tableless designs. Included are six major benefits creating of tableless sites, and how-to sell your to alter desire your to a website Ant Manager.
For a time, web designers are saying: The table is the devil! But they are not able to tell the reason. So here, I'm going to give you some convincing reasons why people don't want to use tables to create Web pages. These include the four benefits of creating a web-free site, and how to turn the site into an enduring "ruler" and sell it.
Let's begin with the benefits of a tableless layout. These are the "order", "I feel they should go in", some things, are more important to other people, so rank them as You'll.
Let's start with the benefits of the table layout. It's because he's important to a lot of people.
Forces to Write well-formed Code
Forcing you to write code that's strictly formatted.
You are cannot have a properly made tableless layout, and use improper and non-standard code. OK, let me correct that-you can (technically can do it) but it defeats the whole purpose. When you are the creating a tableless, you are should be using standards code. I am so anything that makes you to the habit of always writing clean code is a good thing.
You cannot use inappropriate or non-standard code to perform a table-free layout. Let me correct it-you can (technically), but it will make all the goals fall through. When you do not have a table design, you must use a set of appropriate, standard code. I think everything that can make you a good programming habit is a good thing.
Faster Loading Time
Faster Downloads
This is absolutely a benfit the a tableless layout, and for several reasons. The a fundamental level-tables load slowly. For the most part, unless your set the height and width of your table elements, all the text has to is loaded and rendered Before the table sizes itself to the page. Of course, this is what so many people loved about tables isn ' t it? The fact that they were so easily sizeable. The downside is so much more time they take to load.
No table layouts are good, including the following reasons: 1, from the basic principle, the use of table layout will slow down the download speed; More importantly, no matter how you set the height and width of the table elements, all the elements in the table will be loaded before loading the table, which is probably why many people are interested in table layout. In fact, tables are generally large in size, so they load longer. We can't afford to ignore its download time.
okay, so the solution to that loading time is to set all the values explicitly, right? so now we see another Downside. code clutter that increases loading time. first of all, just by themselves, tables take a lot of code. How Many td open and close tags does your average table based layout have? tons. having to set all the values explicitly only adds to the page size and loading time. there are many experiments that have been done on this topic, i ' ll point you toward this one that StopDesign did on a remake of the Microsoft website from a tablebased site to a tableless layout. That remake showed a 62% file size reduction of the site, and using their average hits per month for the microsoft site, calculated that microsoft would be saving 924 gigs in bandwidth per day, and 329 terabytes of bandwidth per year. for any company that pays for bandwidth, these things are important.
Therefore, we must set all the values clearly, thus reducing the download time. Let's take a look at some of the other drawbacks: the confusion of the code will increase the time of loading. First of all, the table itself contains a lot of code, you can count to see that contains a few "TD" Start and end tag, I think it should be a lot of it. To set them up clearly, you have to increase the size of your Web page, which can result in longer download times. We have carried out many experiments on this subject. Try not to use the table layout anymore, and look at Microsoft's approach, they used to use the table layout has begun to use a non-table layout. The study shows that this approach saves 62% of the space for the site; by averaging the monthly clicks, Microsoft will save 924 gigs bandwidth every day, saving 329Terabytes of bandwidth a year. This is necessary for any company with a large bandwidth footprint.
Easier to Read Code
Increase the readability of your code
If you are using standard Code, semantic document conventions, and a tableless layout, your code can is so clean that it l Ooks practically like just regular text with a few extra.
If you're using standard code, standard semantic documents, and non-tabular layouts, your code will look very clear, just like an idiomatic text with some special symbols.
This is a great benefit because it does not have makes it easier for and to update and but it makes it easier for a non-technical User to make small alterations to. Additionally, if you are work as a web developer in a more freelance capacity, it's common for there to be a full-time web de Veloper who has to maintain that site. Clean and simple to read code makes which is easy transition. We like it when people leave us easy to understand code, right? Let ' s return the favor.
The benefits of using a non-tabular layout are not only to make it easier for you to update your Web pages, but also to enable people who are not changed to do it subtly. In addition, if you are a freelance web designer, you can also let professional Web designers remember your site. The simplicity of code can make code conversion work very easy. We all want the code developers to leave us with simple code, so consider this when we write the code.
Print Alternate views
Convenient style definition
When you create a page using a table-layout, your are rather unfortunately locked into a certain layout. Developers who have created table-based websites, as most to us have at some point-particularly if you were in the I Ndustry before the big tableless movement, know this often have to create a separate printable version of your pages. This can is, needless to say, quite tiresome.
When we use a table layout to create a Web page, you should not stick to a particular layout method. Developers who use tabular layouts, like most of us, have to be aware that if you're doing design work before the "web design is not tabular" campaign, you have to create a separate style for each page, which is tedious.
Ease of printing style control are a huge benefit with a tableless layout. Can easily create a single new printing style This applies to all your pages, instead of making them. That's alone is a huge time saver, but there are more.
Easy output style control is a great advantage of a no-table layout. You can easily create a simple new layout and apply it to all pages without having to design a style for each page. This will undoubtedly save a great deal of time.
while you can control all elements with this approach, the Biggest key is organization of information within the page itself . using the example, let ' S assume that the display order we want all our pages to print using the following order: the page header first, the content next, the special news after that, then the link list, and then the footer. However! we still want it to display as it would normally when viewing (meaning the header at the top, the links on the left, content in the middle, news on the right, and footer aT the bottom). with a table-based layout, you would have to create a new page to do that special printing organization because the print style will read your columns left to right. With a table-less layout, you are not bound by This. you can order the content in your page however you like, and still control the way it looks... all by using the css only !
When you use this method to control all elements, one of the first key points to consider is how to effectively organize all the information on the page itself. Let's imagine the following sort of ordering: first, the top of the page, then the content, then the specific news information and links list, and finally the footer. However, we still want it to be displayed according to our normal browsing habits (that is, the top of the page, the link list in the middle, the left in the middle, the news in the middle right, and the footer at the bottom). If you use a table layout, then you have to recreate a page because the table is read sequentially from left to right, but if you use a table-less layout, you are not bound by this form. You can position the content as you want and control it well. And only need to use CSS to achieve the above purposes smoothly.
Additionally, because we can put the content into whatever order we want in the HTML, and then move the content blocks Aroun D for website viewing using Css-we can have ultimate control over presentation.
In addition, because we can use CSS to put all content or part of the content in the HTML page anywhere, so we can make a casual control of how it behaves.
That's very important because the clean code, and ability to alter presentation, means that your site can being viewable by Someone on a small mobile phone screen. The flexibilty and organization leads to being able to create a powerful website that takes advantage of some of the Possi Bilities with XHTML.
Because the simplification of the code is so important, it can control the content of the expression and location, so even on a mobile phone screen, you can easily show your Web page. We can use XHTML Extensibility and organization to create excellent web sites.
Search Engine Optimization
Search Engine Optimization
Due to the fact so you can organize your most important content in the top of your page, without affecting the layout, Y Our page can is better optimized for search engines. For instance, say to have a navigation bar on the left side of the page this lists tons of parts of the site that are actually great keywords. I could move so navigation bar code higher up to my actual HTML, without changing the layout, because I ' m using the CSS To position the navigation where I want it.
Because you can use an unstructured layout to place the most important content at the top of the page without affecting the entire layout, your page can perform SEO optimization as much as possible. For example, I placed a navigation bar on the left side of the page, which wrote some key words with very high interest rates. So I can write the navigation bar code before the HTML code without affecting the entire layout of the page. Because I use CSS to adjust its position.
Those search engines can also clearly find common words throughout document your have to filter without cod E. Search engines prioritize websites that have a higher content to code ratio, so putting all your style elements into yo ur external CSS stylesheet makes your site highly content based to a search engine. Tableless layouts, as previously mentioned, decrease page size and loading time-another to search bonus.
Search engines do not need to filter the code to find the generic keywords for the entire document. Search engines search for pages with a larger proportion of content, so you can highlight the content by putting style elements in an external style sheet. Described in the description of the no table layout, significantly reduce the page size and download time, can be more limited use of search engines.
Presentation flexibility
Full adaptability
Making changes to a CSS based tableless layout are simple. You can alter the CSS file only, changing as many styles and graphics as you want. The affects cascade through all the pages in your website, and eliminate the need for manually updating pages.
A CSS based unstructured layout is a very easy way to do it. You can change the styles and pictures you want by changing the CSS file. Using cascading style sheets throughout your Web site can reduce the amount of daily page updates.
For one of the best known examples of how powerful presentation can is, you can visit the CSS Zen Garden and navigate thro Ugh the ' Select a ' links to the differences. Each of the different designs uses exactly the same HTML file content. The only thing that changes is the CSS file for each one.
You can visit the famous website: CSS Zen Garden, in the entire page layout, it is a classic. You can view the different layout styles by clicking Select a design on the navigation bar. Each of the different design styles uses exactly the same HTML content. It changes HTML content only by using a different CSS.
Selling yourself on standards
Use different standards to sell yourself.
Sometimes knowing how to code for standards, and create flexible tableless layouts are not enough. There are some web designers who meet and difficulties from their management. Most often those difficulties are rooted in management being of the unaware of the using benefits content and CS S driven layout.
Here's what to say: Using standard code, it's not enough to create an extensible, no-table layout. Some web designers have encountered many Web site management difficulties. In most cases, this is caused by ignoring the contents of the unstructured layout and the way CSS is laid out.
If you are want to design for standards, but your work for a and not very forward-thinking in allowing To work on the changes-try this:make them about their pocket-book. Point out of the cost saving benefits.
If you want to standardize the design, but your company is not allowed to do so, because it may delay the time. So you can do this by documenting them in a pocket notebook and pointing out where you can save costs.
for instance, try grabbing a single page of existing code. Clean it up to standards. compare the page size to before (including image optimization), and count the difference in bytes saved. multiply that across the number of site pages, and the number of days per month. then explain to them The amount of bandwidth cost saved monthly if this was done across the whole site. if that isn ' T enough, show them how quickly you can make changes to a website once it is css driven, and push the idea that you will be able to change the site more rapidly when there are needed updates, and you will have more time to focus on adding in new functionality to the site - instead of spending your time doing maintenance.
For example, grab the existing code page as much as possible and rewrite the code in a concise standard code format. Then, compare the size differences between the two pages (including the optimization of the picture) and calculate the dimension difference. Then, explain how much bandwidth costs can be saved per month If you follow the new layout. If this is not enough, you can specify, if the CSS layout will improve how much download speed, and, when the page is updated, you can save how much time to update. In this way, you can save time to improve the functionality of the site-which eliminates most of the maintenance time.
Summary
Summarize
Hopefully, this little article will serve as a way to get you started on understanding why to use a tableless layout, what the benefits are, and you can easily take a look at Layout Gala and download just 1, or all 40 of The tableless layout examples to get you started. however, the best step toward moving to a tableless design is to slowly move your website toward a standard compliant version First, before you get rid of the tables. to get to that point, study as much on css as you can, read through the articles here and elsewhere on the web, and moving from table layouts to tableless will be just a matter of time.
The purpose of writing this article is to make it possible to use the idea of using an unstructured layout and start using this approach to layout. Here is a shortcut, you can directly download the Layout gala website to download the ready-made 40 template case for layout. Before you give up the use of the form, you should try to slow down the site's non-tabular process. You should be fully learning CSS technology, after reading this article and other related articles on the website, it is only a matter of time before you make a website without a table layout.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.