Beginner's view: Talking about CSS and XHTML and Web standards

Source: Internet
Author: User
Tags interface object model version access
Css|web|web Standard |xhtml

Here is a brief introduction to CSS and XHTML and of course Web standard design

Web site standards are not a standard, but a set of standards. The Web page consists mainly of three parts: structure (Structure), performance (presentation) and behavior (Behavior). The corresponding standard is divided into three aspects: the structured standard language mainly includes XHTML and XML, the performance standard language mainly includes the CSS, the behavior standard mainly includes the object model (such as the ECMAScript), and so on. Most of these standards are drafted and published by the consortium, as well as standards developed by other standards organizations, such as the Association standard for ECMA (European Computer manufacturers ECMAScript).

about CSS

CSS is the abbreviation for cascading style sheets cascading style sheets.
Currently recommended to follow is the CSS2 (reference http://www.w3.org/TR/CSS2/) recommended by the consortium on May 12, 1998. The goal of creating CSS standards for the consortium is to replace HTML tabular layouts, frames, and other expressive languages with CSS.
A combination of pure CSS layout and structured XHTML can help designers separate appearance and structure,
Make it easier to access and maintain your site.

about XHTML

XHTML is the abbreviation for the extensible Hypertext Markup Language Extensible Identification language.
Currently recommended to follow is the XML1.0 recommended by the consortium on January 26, 2000
(Refer to HTTP://WWW.W3.ORG/TR/XHTML1).
XML is a powerful alternative to HTML, but it can be used in the face of
Thousands of existing sites, it is too early to use XML directly. So
On the basis of HTML4.0, we extend it with the rules of XML,
Get the XHTML. Simply put, the purpose of creating XHTML is to implement the transition from HTML to XML

So what is a Web design standard?

Most of us have a deep experience, and every time a major browser version is upgraded, the site we just built may become obsolete,
We need to upgrade or rebuild the site again. For example, the 1996-1999 typical ' browser wars ',
To be compatible with Netscape and IE, the site has to write different code for both browsers. The same,
Whenever new network technology and interactive devices emerge, we also need to make a new version to support this
New technologies or devices, such as WAP technologies that support mobile Internet access. Similar questions abound:
Web site code bloated, complex waste of our large amount of bandwidth; For a browser-specific DHTML effect,
Shielding some potential customers, code that is not easy to use, disabled people can not browse the site and so on.
This is a vicious circle, is a huge waste. How do you solve these problems?
People of insight have already begun to think and need to establish a universally agreed standard to end this disorder and chaos.
Business Companies (Netscape, Microsoft, etc.) have also finally recognized the benefits of a unified standard,
So under the organization of the w3c.org,
Site standards started to be established (February 10, 1998 XML1.0 issued as logo),
And under the supervision of the website Standards Organization (webstandards.org) to promote the implementation.
Simply put, the purpose of the website standard is to:
1. Provide the most benefits to the most users of the website
2. Ensure that any Web site document can be long-term effective
3. Simplify the code and reduce the construction cost
4. Make the website easier to use, can adapt to more different users and more network equipment
5. When the browser version is updated, or when a new network interaction device appears, ensure that all applications continue to execute correctly.
Benefits to Web surfers:
1. File download and page display faster;
2. Content can be accessed by more users (including those with disabilities such as blindness, weak vision, color blindness);
3. Content can be accessed by a wider range of devices (including screen readers, handheld devices, search bots, printers, refrigerators, etc.)
4. Users can customize their performance interface through style selection
5. All pages can provide a version that is suitable for printing

Read the above introduction do not know whether the CSS and XHTML relationship has a certain understanding?
In a vulgar sense, CSS is used to modify the Xhml interface.
It will replace the idea of table layout in HTML into a new era with Div layout
In fact, all the places that need to be displayed need to be set through CSS
Now, in order to transition to Web standards, everyone is building or rebuilding their own web site using css2+xhtml.
Because it allows your site to display the same effect in different browsers.
CSS layout and page effects are especially important
I also have to study hard to pull ~~~~@_@
Because it's a standard set by the industry.



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.