Several misunderstandings of the novice Web Standard _css/html

Source: Internet
Author: User
It is a great pleasure to see a lot of designers starting to focus on and trying to make Web pages. But from the Netizen's question and the production to discover several questions, here specially reminds:

1. It is not standardized to pass calibration.
The purpose of web standards is to implement content (structure) and performance separation, that is, to split the style out in a separate CSS file. The advantage of this is that the content and performance can be dealt with separately, and the search and content re-use is facilitated.

The CCS2 is just to help you check whether the XHTML code is written or not, and whether the CSS properties are within the specification of the standard. The standardization of code is only the first step, not the passing of the calibration, my web page is standardized. We are not for the sake of fame, or to show others: "See my page through the verification" and to standardize, our goal is to make their web design work more efficient, in order to reduce the size of the page, in order to be able to browse in any browser and network devices.

Please sink your mind and carefully study and understand the connotation of web standards. The web is full of not impetuous and vanity, please do not bring this ethos to the Web Standard application, this will only affect and damage the promotion of web standards.

2. Don't use traditional form thinking to set up div
"CSS layout is the original table with the place with a div instead, the original is nested tables, is now div nesting." "This view is wrong!"

Please jump out of the original table layout of the prison, discard a TD after a TD placed pictures and content of the way of thinking. As we said above, the purpose of web standards is to separate the content and performance, you can think, the page is just content, without modification, it looks like a white page, there are some text and pictures (this picture refers to the content of the picture, is a real meaning of the picture). These text images are simply listed in sequence, with only the structure, without any style. Then add the performance, all the modified images as the background, C SS to define the location of each piece of content, font, color and so on.

This makes the content and performance of the page is separate, that is, when you draw out the CSS file, the rest is clean content. This can be read in the text browser, in order to read in the phone, PDA, in order to modify the CSS at any time to achieve revision.

3. Do not have to create an ID for each piece of content
Some netizens complain that CSS files are too big and too complex. Look closely at their code and find out that they define a div for each piece of content, or even every sentence, to create an ID. This aspect is not familiar with the application of stylesheets, on the other hand, it also shows that there is no thorough understanding of web standards.

We know that the content is structured (if not understood, read: [URL=HTTP://WWW.W3CN.ORG/ARTICLE/TIPS/2004/43. html] Understanding representation and structure separation [/url]), The same structure of the content we can use the same style to define, such as the same level of title, body, pictures. Styles for multiple references can be defined by class and do not need to be used for each ID;

, you can totally use
Instead, are also block-level elements, like the box model of the seven parameters,

Just easy to float.

As for the addition of additional div just for the sake of line height, spacing, and a modified image, I think that with the application and understanding of CSS, you will soon be able to omit these. We oppose the use of div nesting instead of table nesting, which has no meaning and does not reflect the structure of the content. I hope you will study CSS more, write the most concise, most effective style sheet.

4. Don't give up because of a little setback
I think it's a matter of attitude and approach, not just for learning web standards. There are difficulties in learning any new knowledge and accepting new concepts, especially when you need to change your existing habits and thoughts. The only question is: Do you think learning web standards is worth it? You can ask yourself: do you recognize these benefits of Web standards (simplifying code, accelerating development, compressing file sizes, increasing download speed, better usability, getting more users, easier maintenance, and multi-platform compatibility)? Do you think the world-wide XML is far from you? Do you think the HTML knowledge you have now is enough?

Since 99, Web page production technology in the country has not much progress and change (except the rise of Flash), and the pace of foreign progress has not stopped, xhtml1.0, xhtml1.1, XML, XSL ..., The company is constantly researching and advancing web technology to make it more convenient, more effective and more powerful. The application and promotion of Web Standard has been carried out for more than eight years (starting from the Web Standard organization website of Zeldman), although it is difficult, it is gradually accepted and recognized by people. Why we still revel in the site surface of the "bustling", not to think about the essence of the page behind the things.

Would you like China to continue to lag behind? Do you want to keep falling behind? All decisions are yours.

  • 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.