What does div+css and xhtml+css mean? _ Basic Tutorials

Source: Internet
Author: User
Do not know from when, in the network everywhere can see DIV+CSS, in the end what is div+css it? Is it the standard refactoring of the legend? Is the standard not a reasonable use of XHTML labels from the simplest source? But why are there so many div+css? Since can div+css, then why can not call Span+css ul+css li+css and so on?

Doubt, full of doubts! For this question, I turned my mind from the bottom of my head.

A few years ago, we all used table to layout, a layer of layer, did not find anything wrong, has been used to "website refactoring" This book came out shortly after the beginning to see a lot of people to discuss the reconstruction. At that time I was not clear about the so-called refactoring, of course, it is not very clear, as for the "website refactoring" This book I have not read a few pages, do not dare to say that they know everything. But for now, there are a lot of friends who have changed from the table layout to include myself.

Read a lot of tutorials online and a lot of friends of the article or mention the problem, the code structure is not the only Div. Even see the code structure in addition to the DIV tag in the body, there is no other to handle the structure of the label. Perhaps because of this, only then appeared the Div+css, uses the div to make the layout, unifies the CSS to express the style, that is this is the standard?

is to replace table with a Div, the TD to UL to arrange, then the other XHTML label how to do?

Maybe some friends will say "I use div to layout, so call Div+css, and now everyone is called ah". Well, that's right, because Div has no semantics in XHTML, and it's a block element, and it's more reasonable to use in layout. But if the div is called for div+css because of this, it seems to be on an equal footing with XHTML. Just like your generational is the younger generation, but run to fight with the elders, too outrageous, is not it?

Said so much, just want to hope that we do not say Div+css again, why can not play more than 2 letters, change called Xhtml+css it? If this is not appropriate, it is called the site refactoring it, you can also call yourself as a site reconstruction engineer, more beautiful name, can not let others call you DIV+CSS personnel it.

In the "Beyond the CSS", they still recommend that you use less div, more reasonable using the label, do not forget in XHTML and p,form many tags. Reasonable use of the label, reasonable page structure will make your site easier to search to find important content. Simply put, we all know Hn (n=1,2,3,4,5,6) is used in the title, that p,form,table can also let them have their own in the page structure of a position it?

The above is only in the text of the network on the Div+css some of the views, the text expression of the wrong place everyone criticized, but the final hope is not to call Div+css, Div is not the main thing, the main is XHTML.
  • Related Article

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.