Misunderstanding of the first school Web standard

xiaoxiao2021-03-06  109

Several Misunderstanding of the beginner Web Standard I am very happy to see many designers began to pay attention to and try to make web pages using the web standard. But from the questions and production of netizens, I found a few questions, especially reminded here:

1. Not to standardize through checks. The intention of the web standard is to achieve content (structure) and manifestation, which is to peel out of the separate CSS file. The advantage of doing this is to handle content and performance separately, and it is also convenient for searching and reuse of content.

W3C check is just to help you check if the writing of XHTML code is specified, whether the attribute of CSS is in the specification of CCS2. The standardization of the code is just the first step, not to say the verification, my webpage is standardized. We don't show off to others, or to show off from others: "Look at my page through the check", we go to standardize, our purpose is to make our own web design work more efficient, in order to narrow the web size, in order to be available in any browser And normally browse in network equipment.

Please calm down, study and understand the connotation of the Web standard. It is already full of impetuousness and vanity, please don't bring this atmosphere to web standard applications, so you will only affect and harm the promotion of Web standards.

2. Do not use traditional formal thinking to the DIV "CSS layout is to replace the original use of table, originally a table nested, now Div nested." This view is wrong!

Please jump out of the original table layout, abandon a TD to pick a TD placed picture and content thinking. We have said that the purpose of the Web standard is to separate content and performance. You can think so, some are just content, no modification, it looks a white page, there are some words and pictures ( This picture refers to the picture in the content, which is a picture of true meaning). These text images are just in turn, only the structure, no style. Then add performance, use all modified pictures as the background, define the position, font, color, etc. of each piece with C SS.

The page made this is the content separation, that is, when you take off the CSS file, the rest is clean. This will be read in a text browser to read the CSS implementation revision at any time in the text browser.

3. Don't have to build a ID for each content, netizens complain that the CSS file is too large, too complicated. Take a closer look at their code, found that they are for each content, even each sentence, and establish a ID. This aspect is unfamiliar with the style of style, and on the other hand, it also shows that there is no thorough understanding of the Web standard.

We know that content is structured (if you don't understand, please read: [URL = http://www.w3cn.org/Article/tips/2004/43. HTML] Understand the performance and structure separation [/ url]) We can define the same style, such as the same level, the text, the picture. For multiple references, you can use Class to define it, you don't need to use ID; it is not necessary to use

, you can use

to replace it, the same is a block-level element, Seven parameters of the box model,

is only convenient to float.

As for the increase of additional div, I want to apply and understand the application and understanding of CSS, you can omit this with the application and understanding of CSS. We oppose the nested Table nested by DIV, which does not make sense, and cannot reflect the structure of content. I hope that everyone will study more CSS, write the most concise, and most effective style sheet.

4. Don't give up because of a setback, I think this is an attitude and a method of doing the method, which is not only for learning Web standards. Learn any new knowledge, accept new concepts, have difficulties, especially when you need to change the original habits and thinking. The only problem is: Do you think that the WEB standard is worth it? You can ask yourself: Do you want to recognize these benefits (simplifying code, speeding development, compressed file size, increase download speed, better ease of use, get more users, easier to maintain, multi-platform compatibility )? Do you think that the world's XML is still far from you? Do you believe that HTML knowledge is now enough? Since 99 years, web production technology has not improved and changed in China (except for the rise of Flash), and the footsteps of foreign countries have not stopped, XHTML1.0, XHTML1.1, XML, XSL ... W3C and major software companies are constantly researching and promoting Web technology, making it more convenient, more effective, and more powerful. The application and promotion of Web standards have been carried out more than eight years (starting with Zeldman's Web Standards Organization website), although difficult, it is gradually being accepted and recognized. Why do we still enhance the "bustling" on the surface of the website, don't think about the nature of the page.

Are you willing to continue in China? Are you willing to continue behind? Everything is determined to be yourself.

转载请注明原文地址:https://www.9cbs.com/read-100470.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.047, SQL: 9