1 Отредактировано omen (24-12-2011 01:23:06)

Тема: media type xhtml | html

http://demoshop.imagecms.net/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

3.1. 'application/xhtml+xml'

The 'application/xhtml+xml' media type [RFC3236] is the primary media type for XHTML Family documents. 'application/xhtml+xml' should be used for serving XHTML documents to XHTML user agents (agents that explicitly indicate they support this media type). This media type must be used when writing documents using XHTML Family document types that add elements and attributes from foreign namespaces, such as XHTML+MathML [XHTML+MathML].
3.2. 'text/html'

The 'text/html' media type [RFC2854] is primarily for HTML, not for XHTML. In general, this media type is NOT suitable for XHTML except when the XHTML is conforms to the guidelines in Appendix A. In particular, 'text/html' is NOT suitable for XHTML Family document types that add elements and attributes from foreign namespaces, such as XHTML+MathML [XHTML+MathML].

http://www.w3.org/TR/xhtml-media-types/

http://wdh.suncloud.ru/html11.htm


Я запутался, в даном случае верно?

Разобрался:

Для XHTML страниц рекомендуется задавать MIME-тип — application/xhtml+xml, но это не является обязательным, более того — браузер Internet Explorer 8 и младшие версии, не смогут обрабатывать страницу, поэтому с XHTML 1.0 традиционно используется MIME-тип для HTML — text/html.

Thumbs up Thumbs down

2 Отредактировано omen (24-12-2011 01:28:40)

Re: media type xhtml | html

http://validator.w3.org/

Errors found while checking this document as XHTML 1.0 Transitional!
Result:     8 Errors
Address: http://demoshop.imagecms.net/
Encoding:     utf-8   
Doctype:     XHTML 1.0 Transitional   
Root Element:     html
Root Namespace:     http://www.w3.org/1999/xhtml

8 ошибок xhtml 1.0

Thumbs up Thumbs down

3

Re: media type xhtml | html

Errors found while checking this document as XHTML 1.0 Strict!
Result:     15 Errors
Address:  http://www.imagecms.net/
Encoding:     utf-8   
Doctype:     XHTML 1.0 Strict   
Root Element:     html
Root Namespace:     http://www.w3.org/1999/xhtml

Thumbs up Thumbs down