2008年4月16日星期三

Div and table, still entangle actually how long

Author: Allan
Reprint since: Allan.Blog( this text agrees to reprint
Original text publication
Today a good friend MSN goes up ask me this subject suddenly, think of suddenly is actually inside forum , about the use of DIV and TABLE form, doubt has a lot of persons to happen , paste son to ask , here, I want to arrange my train of thought!

?

About
After using WEB standard, it is not to say that remove the use of form, form is not chicken rib, and it is together big meal on the contrary to happen , in many articles about CSS layout mention frequently " why use form typesetting is not sensible " this sentence words, possibility is that all have mistake for his understanding, here, noticing that" use form typesetting" " is not sensible ". What point is that we have used for many years, it is not sensible to set type with form, it is a kind of way that shows " data" that form goes back to root section base, all may imagine EXCEL, form is this use, some time message use form shows that lets us be clear and legible , so, just use form, for example company's employee, contact is shown , product and model corresponding table.

So, the form claimed is eaten , actually opinion rising has gone to a level, that is said you if can like the professional company of market analysis, at the flexible time of using form to show the newses such as customer data and investigation data, that is just the advantage that has used form really.

So, about that sentence make to for a long time words, it

About other
I here according to my use experience,

The first kind of
Here, what I point is DIV and SPAN, the major function of this kind of element is used layout entire page surface, it is flexible to use the various attributes of these elements , may let your page surface show rich and colorful.
Second kind I am called
Here, what point is TABLE, UL, PRE, CODE kind of element is a kind of message shows and arranges way, for example TABLE apparently, is used to show form message, UL is used to show row to melt message, while need to use form or list, show with this 2 kinds of way that is sensible.
What 3th kind points is that it is so , is to realize
So, the correct design

Using DIV etc. layout element comes
Use the such elements such as

Certainly, DIV also takes the role of disposal data,

So, use WEB standard to make website , is a process of a message rationalization integration actually, what place should shine still with what element to use not mistake, do not pawn form layout tool trip.

没有评论: