inicio mail me! sindicaci;ón

Choose what kind of DOCTYPE?

Started producing sub-standard site, the first thing that meet their own needs, the statement DOCTYPE.

Show Home original code, we can see that the first line is:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
Open some of the sites meet the standards, such as the well-known Fashion site, yard9’s Web site will find the same code. While some of the sites meet the standards (for example, orchn.com) code is as follows:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd“>
A.1. Document Type Definitions
These DTDs approximate the HTML 4 DTDs. The W3C recommends that you use the authoritative versions of these DTDs at their defined SYSTEM identifiers when validating content. If you need to use these DTDs locally you should download one of the archives of this version. For completeness, the normative versions of the DTDs are included here:

A.1.1. XHTML-1.0-Strict
The file DTD/xhtml1-strict.dtd is a normative part of this specification. The annotated contents of this file are available in this separate section for completeness.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>
A.1.2. XHTML-1.0-Transitional
The file DTD/xhtml1-transitional.dtd is a normative part of this specification. The annotated contents of this file are available in this separate section for completeness.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>

A.1.3. XHTML-1.0-Frameset
The file DTD/xhtml1-frameset.dtd is a normative part of this specification. The annotated contents of this file are available in this separate section for completeness.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd“>

We chose what kind of DOCTYPE
Ideal, of course, is strict DTD, but most of us Gangchachu standard web designer, the transition DTD (XHTML 1.0 Transitional) is the ideal choice (including this site, also used the transitional DTD). DTD also because it allows us to use the logo of the performance, elements and attributes, but also relatively easy to check the code through the W3C.

Note: The above that the “performance of the logo, attributes” simply refers to those used to control the performance of the tag, for example, typesetting of forms, such as background color logo. In XHTML the logo that is used to structure, rather than used to achieve manifestations, our transition is the ultimate realization of the purpose of performance data and phase separation.

Figuratively speaking: human models changing clothes. Models can be compared to data, performance is the form of clothes, models, and clothing is separated, so you can be arbitrarily changing clothes. The original HTML4, data and performance is mixed up together, in order to form a one-time change is very difficult. Oh, a bit abstract, in this concept we need to understand the step-by-step application process.

www.ie16.com

Bookmark:Digg Del.icio.us Reddit

Leave a Comment