1.1 Div's name is inaccurate.
I think that usually come to "this topic" classmate, most of them are directed to Div, the purpose is to learn Div, said directly some is to learn how to use div layout page, how to make a standard from a picture of Div page.
If you haven't found any mistakes in the first paragraph, then you need to look down.
Div This term is actually a very wrong name, this is the Chinese people's wishful thinking, and what is the standard name?
Oh, yes, is xhtml+css, do not understand it, I come to you to say, if the following you can understand, to ensure that the interview will have a great help, but also can make you learn more easily behind.
Why do people like this page layout method called Div?
Because the past layout page is basically a table layout, can also be said to be table+css, and now layout page, with Div, so called Div, sounds quite reasonable, that the layout of the page is the standard page, and even some people go to an extreme, See other websites use table, will ridicule the page does not enough standard, as if using a table to become a standard page is a ruler. Now I can tell you that those who have this kind of behavior, have not learned how, very fur!
Use the table page is not standard?! Pure nonsense, what is the standard page? First look at a professional concept, web standards, and then I will ask three questions, you answer:
Web standards are not a standard, but a collection of standards. The Web page consists mainly of three parts: structure (businessesflat-out), performance (presentation) and behavior (Behavior). The corresponding standard is divided into three aspects: the structured standard language mainly includes XHTML and XML, the performance standard language mainly includes the CSS, the behavior standard mainly includes the object model (such as the ECMAScript), and so on. Most of these standards are drafted and published by the consortium, as well as standards developed by other standards organizations, such as the Association standard for ECMA (European Computer manufacturers ECMAScript).
Do you understand? The problem comes ~ Don't look at the answer, find out from the above concept
Question one: How many parts does the Web standard consist of?
Question two: What is the structured standard language?
Question three: What is the standard language of performance?
Answer 1:3 part, structure, performance, behavior
Answer two: XHTML and XML
Answer three: CSS
After reading the above three questions, what is the standard page? Oh, the white is according to the Web standard produced page, from the second question and the third question, we can say, with XHTML and CSS page is the standard page, that is, Xhtml+css made page is standard page. How about that, understand?
Why not say xml+css?
Simple, because XML is too complex and most of the current browsers do not fully support XML. So you don't need it to layout the page.
Since XHTML+CSS is the standard page, also because XHTML is not only div tags, there are spans, p, a, UL, Li, DL, DT, DD ..., even if I do not use div, with other tags (such as: UL, Li) produced by the page is also a standard page! So say use div to make standard page this sentence is very narrow then ~ if full screen are all div that is not a standard page, once told me by a friend, said his page all use Div, each module, each functional area, even a line is pure div implementation, and quite proud to tell me, No one is more standard than the page he makes, he not only on the Web Standard page of the understanding of error also made a big mistake, XHTML in each of the tags have its role, their respective duties, to keep their responsibilities, to use the right, this is a standard page, Div is not omnipotent yo ~!
Say here everybody should understand, this kind of Web2.0 time layout page method, call Div is inaccurate, should call XHTML+CSS.
Those who see this section of the students, as far as possible to say xhtml+css, don't say div, if you have to say, also want to add a statement yo, such as
Interviewer: Do you know div?
Applicant: Div Accurate say should call xhtml+css, I to this kind of page layout method very understand! ......
If you are an interviewer, how do you feel about this candidate? Oh oh
Good ~!. This lesson is here, Class!