Самый быстрый способ превратить существующие страницы XHTML 1.x в HTML5?

334
Jeremy Schroyer

У меня проблемы с программированием HTML5.
Я веб-разработчик-самоучка, изучающий HTML5 для повторного запуска веб-сайта клиента.
Какой самый быстрый способ взять текущие страницы XHTML 1.x и сделать их HTML5?
Кроме того, могу ли я использовать валидаторы XHTML 1?

0

1 ответ на вопрос

0
Jukka K. Korpela

This depends on your definition for “HTML5”. HTML5 is work in progress, and we normally see a new version literally every day, if we regard HTML 5.1 Nightly as the current definition for HTML5, as many people do.

The quickest way is probably anyway to submit the document to http://validator.nu in HTML5 mode and then fix whatever problems are reported. This does not guarantee conformance to HTML5 (which here means “what the authors of the validator regard as applicable in HTML 5.1 Nightly”), however. Many conformance requirements can only be checked by a human being that knows HTML5 and understands the content of the page.

It might not be very quick, depending on the page. You might need to spend quite some time in learning HTML5 rules and also CSS, since many constructs that are valid in XHTML 1.x, especially in XHTML 1.0 Transitional, are forbidden in HTML5 (though they work excellently in browsers) and need to be replaced by CSS (mostly).

Похожие вопросы