Div + Css should also start from scratch

Source: Internet
Author: User

Although Div + Css has already been used as a lot of websites, the knowledge in the brain is based on the previous "table website era". Many of the results can be achieved, and I do not know why, it is only self-debugging. I always learned about Div + Css, because it already exists in the web pages made in the table age. It is not a separate new discipline or knowledge. It is not appropriate to describe a webpage using Div + Css. table and div are only one element in the webpage, and there are many elements in the webpage, why don't we use other elements to name a webpage? Without using these two commonly used elements in a webpage, you can also make a variety of effects interfaces.

Since we need to start from scratch, we need to clarify these two concepts.

Table is mainly used for various Forum departments on the website. It leaves the div and css, and can also achieve a large range of departments in the framework, but it is not fine enough, not flexible enough, and the effect is not very beautiful. In the manufacturing process, you still need to modify the div, css, and other elements.

What about Div? The so-called Div refers to the use of Div instead of table to implement the Department, so that no table element appears in the webpage, and Div cannot be separated from Css. Only when it is closely integrated with css can the department of the webpage be implemented.

Css is inseparable from Div, but Css is not a vassal of div, not a table. It can control the Display Effect of the entire webpage, while div and table are just a "customer" it serves.

The website has been created for many years, but many elements are rarely used in the webpage, for example: <dt>, <dd>, <em>, <pre>, although some elements are often used, they have many attributes. What are the characteristics of these elements? Where should they be used, in the era where table is the main web page, I don't need to hold on to it, so I can make any effect I want. When the table does not fully support the features of other elements, it can only rely on "guesses". This way of doing work while "guessing" is a waste of time, I originally thought that a few "non-table" websites could support this technology, but now it seems that this is not the case. Sometimes I guess the display effect, but it does not conform to the webpage production specifications, when I used table as the station, I actually held most of its attributes (width, height, border, spacing, padding, background, color, horizontal, vertical... there are also some special attributes that cannot be found in the book), and you know what the table, tr, and td have. Now you can use it as you like, and you will not use it to do something that it cannot do. Now, "I should take it for granted that Div should be used." I am eager to take it as a new knowledge, and I doubt that it can become a mainstream way to create web pages, I often make some incredible mental retardation errors when using table as the site for beginners. I keep asking why, why... the most fundamental reason is that it does not have any attributes at all. What are its own characteristics, div still does not know the concept of "Row-level elements" and "Block-level elements" in Webpage elements, and does not know the idea of using div as a webpage, I don't even know why I have to think about it? In fact, when I used the table, I also experienced this process, but I was too familiar with it and did not know what I would do. I don't even know what tools I use. I am used to the design effect that the table can see in dreamweaver. The messy display of webpages without tables in dreamweaver and various browsers is almost crazy, will dreamweaver continue to be used?

Even though this is the case, I don't even know which tool to use to create a webpage. Why don't I use div + css as a new knowledge.

I personally feel that div is not much better than table in optimization. Because content is more important than reading speed, complicated table elements are more creative than simple div elements.

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.