I have explained on 52css.com many times that web standards are a series of standard sets, not just the "Div + CSS" layout. CSS web page layout is only one of the basis of the standard. The "Div + CSS" layout is just a common name. The goal of our learning is to establish a good semantic structure with XHTML, and use CSS to maximize the separation of presentation and content.
I don't know when to start. I can see Div + CSS everywhere on the network. What is Div + CSS? Is it the legendary standard reconstruction? Isn't the standard a reasonable use of XHTML labels from the simplest root? But why are there so many Div + CSS? Since Div + CSS can be used, why not span + CSS ul + CSS Li + CSS?
Questions, full of questions! In order to answer this question, I rummaged over the things in my mind from the very bottom.
A few years ago, we all used tables for layout. We did not find anything inappropriate. We have been using the book website reconstruction and many people began to discuss refactoring shortly after it came out. At that time, I was not clear about the so-called refactoring. Of course, it is not very clear now. As for the book "website reconstruction", I have not read many pages and dare not say that I know everything. But for now, there are still many friends who are switching from the table layout, including myself.
I read many tutorials on the Internet and some of my friendsArticleOr the question mentioned,CodeDIV is indispensable in the structure. Even the code structure contains only the DIV labels in the body and cannot find any other labels used to process the structure. Maybe that's why Div + CSS emerged, and DIV is used for layout, and CSS is used for style display. Is that the standard?
After table is replaced with Div and TD is replaced with UL, what about other XHTML labels?
Some may say, "I use Div for layout, so I want to call it Div + CSS, and now everyone is calling it like this ". Well, that's right, because Div has no semantics in XHTML and is a block element. It is reasonable in layout. However, if the DIV is called Div + CSS independently because of this, it seems that it can be flat with XHTML. It's just like your generation was originally a younger generation, but you ran to compete with the elders for a seat. It's so bad, isn't it?
After talking about this, I just want you to stop talking about Div + CSS in the future. Why can't you name it XHTML + CSS with two more letters? If you think this is not the case, you can call it website reconstruction. You can also call yourself a website reconstruction engineer. What a nice name is, you can never ask someone to call your Div + CSS staff.
We recommend that you use less Div and more tags reasonably. Do not forget that there are many P and form tags in XHTML. The rational use of tags and a reasonable page structure make it easier for your site to find important content. To put it simply, we all know that HN (n = 1, 2, 3, 4, 5, 6) is used in the title. Can P, form, and table allow them to have their own position in the page structure?
The above is just my personal opinion on Div + CSS that is everywhere on the Internet in terms of text. Some people criticize the incorrect text expression, but what I hope will not be called Div + CSS any more, DIV is not the main thing, mainly XHTML.
(Source: I love CSS)