Div + css achieves separation of structure and Expression in ideas and procedures

Source: Internet
Author: User
Tags css zen garden

The separation of content and performance has been discussed since the day from the standard to the emphasis on Chinese people. However, the separation of div + css xhtml + css pure code remains the same. How can we separate the ideological process?

Old topic: separation of an ancient poem

1. Give you an ancient poem and save it as a pile of unformatted text. You can understand its content and process the structure. After using the word layout, he has a structure
2. This structure actually contains semantics and representation
3. Structured with html. Aside from all forms of representation, only semantics is considered.
4. CSS is used for representation processing, including the default representation of html. It has visual representation, which reflects the structure and user experience, the user experience includes interactive layout and visual experience.
5. If the behavior is added, such as clicking the comment sequence number, the Comment content will be slowly jumped.

Let's take a look at css Zen garden.
The above five steps form the css zen garden of the first version.
More template providers are engaged in interactive online drafting + visual design. It is reflected in CSS on the webpage.

We can see from the encoding perspective
Step 1: content processing is structured and compiled in pure HTML
Step 2: structure processing is a manifestation of pure CSS Compilation
Step 3: Add behavior to the performance.

From the process perspective
Step 1: planning documents
Step 2: Structure Processing
Step 3: Interactive Design (interactive style Construction)
Step 4: Visual Design (visual style Construction)
Step 5: Style Building

Reverse Thinking
If there is no css zen garden, the designer has designed hundreds of design documents and made them into pages. Will the HTML structure be the same? Analogy: If you plan to process two interactions and visual designers, will the structure of page building be the same? The answer is certainly not the same. Why not? The root cause of the discussion is that we need to think deeply!

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.