Why is XHTML1.1 dated *before* XHTML1.0 ? What is the preferred XHTML today?
문제
I'm not clear on the status of XHTML - v1.0 versus v1.1. Can someone explain which is preferred at this point, and why?
The specs from W3C say that XHTML 1.1 *predates** XHTML 1.0, which is very counter-intuitive, to me:
http://www.w3.org/TR/xhtml11/ - W3C Recommendation 31 May 2001
http://www.w3.org/TR/xhtml1/ - W3C Recommentation, updated 1 August 2002
Also, I noted earlier today that the latest version of htmltidy emits XHTML 1.0, when I request XHTML. Hmmm....Even though the XHTML 1.1 spec is 9 years old, it's still not supported by mainstream tools. That suggests that XHTML 1.1 is either completely unnecessary or spurious.
Which one should I use if I am authoring pages today? What if I am building tools - should I bother to support both? Or do I need only one?
Thanks.
해결책
If you open the XHTML 1.0 document and click on the diff-marked version you see that the differences are mostly/only (did not check thorough) formatting and grammar changes.
The original of this document is older than the XHTML 1.1 document, so I would think they just updated the document to comply with a newer format.
다른 팁
Besides the original XHTML 1.0 documentation is older than 1.1 as answered by others,-
The XHTML 1.1 page you've linked to just describe the structure. The "modules", which actually defines the elements, are listed in http://www.w3.org/TR/xhtml-modularization/ and the last update is in 2008.
@ortort는 시작할 환상적인 / 쉬운 일입니다. 파일의 모든 단어에 대해 Word Count를 생성 할 수도 있습니다.좋은 데이터 소스는 프로젝트 Gutenberg 공개 도메인 도서의 라이브러리 (항상 몇 가지를 함께 연결할 수 있습니다.).
더 고급 무언가를 원한다면, 단어 수와 동일한 정맥에서 매우 간단한 분산 맞춤법 검사기를 쓸 수 있습니다.Peter Norvig awesome 파이썬으로 작성된 맞춤법 검사기의 간단한 데모 .좋은 운동은이 알고리즘을 분산 방식으로 파일로 작동하도록 확장 될 것입니다.
As far as I know, XHTML 1.1 was the first fully fledged XML based version of the language. This means that XHTML 1.1 should be served with the application/xhtml+xml mime type.
XHTML 1.0 was added as an intermediate between the fully fledged XML language (XHTML 1.1) and HTML 4 (Mime type text/html).
At least that's my understanding upto this point.