What do div+css and xhtml+css mean? _ Basic Tutorial
Source: Internet
Author: User
Do not know since when start, on the network can see div+css everywhere, in the end what is DIV+CSS? Is it the legendary standard reconstruction? Is the standard not a reasonable use of XHTML tags from the simplest source? But why are there so many div+css? Since can div+css, then why not can call Span+css ul+css li+css wait?
Doubt, full of doubt! For this question, I have turned my mind's contents from the bottom of the floor.
In a few years ago we are using table layout, a layer of a layer, did not find anything wrong, has been used to "website refactoring" The book came out soon after the beginning to see a lot of people to discuss refactoring. At that time I to the so-called reconstruction is not clear, of course, now is not very clear, as for the "website refactoring" This book I have not read a few pages, dare not say that they know everything. But for now, there are a lot of friends from the table layout to change, including myself.
Read a lot of tutorials on the internet and many friends of the article or is mentioned the problem, the code structure is not the only Div. Even see the code structure in addition to the DIV tag in the body and foreign, can not find the other to deal with the structure of the label. Perhaps because of this, only then appeared the Div+css, uses the div to do the layout, unifies the CSS to represent the style, that this is the standard?
is the table replaced with Div, the TD replaced by UL to arrange after, that other XHTML label how to do?
Perhaps a friend would say "I am using div to layout, so call Div+css, and now everyone is so called ah". Well, yes, because Div has no semantics in XHTML and is a block element, it is more reasonable to use in layout. But if because of this and the div to call the independence for DIV+CSS, it seems that with XHTML can be equal. is like your seniority originally is the younger generation, but runs to with the elder to contend for the seat, is too outrageous, is not?
Said so much, nothing but want to hope that everyone later don't say div+css, why not more than 2 dozen letters, change call XHTML+CSS? If you feel that this is not right, then call the site refactoring it, you can also call yourself a website reconfiguration engineer, what a nice name, can not let others call you DIV+CSS personnel.
In the "Beyond the CSS", they still recommend less use Div, more reasonable use of tags, do not forget in the XHTML there are many p,form tags. Reasonable use of tags, a reasonable page structure will make your site more easily search to find important content. Simply put, we all know that HN (n=1,2,3,4,5,6) is used in the title, that P,form,table is not also can let them have their own in the page structure in a position?
Above is only the individual in the text to the network everywhere visible div+css Some views, the writing aspect is not correct the place everybody criticizes, but finally hoped is does not call Div+css again, the DIV is not the main thing, the main is the XHTML.
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.