Div to learn from scratch.

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Although already used Div to do a lot of website, but this knowledge is based on the previous "Table Web site Era" left, a lot can be done out of the effect, since also do not know why, just from the repeated debugging out. Always rely on to learn div, because it is made in the table of the Web page has been, it is not a separate new discipline, new knowledge. Using div to describe a Web page is also inappropriate, table and Div are only one element in the Web page, there are many elements in the Web page, why not use other elements to name a Web page? You can also make a variety of effect interfaces without using these two common elements.

Since we have to learn from scratch, we should clarify these two concepts.

Table is mainly in the site to do a variety of plate bureau, it left the div and CSS can also do a large framework of the Department, but not fine enough, not flexible, the effect is not very beautiful. In the system to do or need Div, CSS and other elements to point to modify.

Where's the div? Now the so-called Div refers to the use of Div to replace the table to achieve the department, to achieve in the Web page does not appear table elements, div inseparable from CSS, only with CSS closely combined to achieve the Department of the Web page.

Along with the CSS, but CSS is not a subordinate Div, but not a table, it can control the entire Web page display effect, and div and table is only its service a "customer" bale.

Web site production has been doing for many years, but there are many elements in the Web page is rarely used, such as:< DT >, < DD >, < em >, the < Pre, and some elements, although often used, but it has the number of attributes, what is the characteristics of this element , where this element should be used and not in depth research, and in the page as the main web age I do not need to hold these, can make any effect I want. Leaving the table in a situation where the other elements are not fully held, can only rely on "guess", this side "guess" the way to do work, very wave waste time, originally thought to do a few "non-table" site can hold this technology, but now it seems not the case, sometimes guessed the effect of the display, But does not conform to the Web page production specifications, the original use of table when I actually have held it most properties (wide, high, border, spacing, padding, background, color, horizontal, vertical ...) There are some special attributes that are not found in the book, and know that table, TR, TD itself has what characteristics, now used to do whatever it is, do not use it to do something it can not do. And now "I take for granted the use of Div", disdain to take it as a new knowledge, but also suspected that it can not really become the mainstream way of making web pages, often committing some "novice" in the use of table to do the magic of the Mentally retarded error, keep in mind, why so, why so ... The most fundamental reason is that it has no properties at all. It has its own characteristics, for the DIV still do not know the page elements still have "row-level elements" and "block-level elements" concept, do not know what to do with Div Web page What kind of thinking, even do not know why to have ideas? In fact, when the table was also experienced this process, just mastered too familiar with, do not know that they will. Even the use of what tools do not know, accustomed to the table in the Dreamweaver see that the results of the design, there is no table page in Dreamweaver and a variety of browsers a messy display, are going crazy, Dreamweaver still want to continue to use?

That is the case, even the basic tools to make Web pages do not know what to use, why not to div as a new knowledge to learn it again.

At the end of the sentence added: personal feeling div in the optimization does not have much advantage than table. Because content is more important than reading speed, "messy" complex table elements are more creative than simple div elements.

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.