Created
February 7, 2012 10:51
-
-
Save h4/1759080 to your computer and use it in GitHub Desktop.
Декларации DOCTYPE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Декларации HTML | |
1. Не обязательны закрывающие теги для p, h1...h6, pre, li | |
2. Значения атрибутов можно не заключать в кавычки | |
3. Возможен ЛЮБОЙ регистр для имён элементов и атрибутов | |
--> | |
<!--HTML 4.01 Strict — строгое соответствие спецификации HMTL 4.01--> | |
<!DOCTYPE HTML PUBLIC | |
"-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<!--HTML 4.01 Transitional - нестрогое соответсвие спецификации HTML 4.01--> | |
<!DOCTYPE HTML PUBLIC | |
"-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Декларация HTML 5 | |
Одинакова для html и xhtml, выбор делается на основе заголовка ответа сервера | |
--> | |
<!DOCTYPE html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Декларации xHTML | |
1. Все теги обязаны иметь закрывающий тег, в том числе и «пустые» (<br />) | |
2. Все значения атрибутов в кавычках | |
3. Имена тегов и имена атрибутов — в нижнем регистре | |
--> | |
<!--xHTML 1.0 Strict – строгое соответствие спецификации xHtml 1.0--> | |
<!DOCTYPE html PUBLIC | |
"-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<!--xHTML 1.0 Transitional – нестрогое соответсвие спецификации xHtml 1.0--> | |
<!DOCTYPE html PUBLIC | |
"-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<!--xHTML 1.1 соответсвие спецификации xHtml 1.1. | |
Требуется передача документа с content-type="text/xml" --> | |
<!DOCTYPE html PUBLIC | |
"-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment