1.10.2016, 16:40, Robert Prins wrote:
>> 1) add the doctype
>
> Done in verisons 1 & 2 - formatting wrong!
As I wrote earlier, this was more or less to be expected.
Consider <!doctype html> as a magic incantation that says “I pray you, o
Browser, to display my document according to the most recent CSS,
JavaScript, and HTML standards you know, instead of trying to simulate
the way browsers worked in 2000 or so”. If you created your document
well over ten years ago and tested it on browsers used then, the odds
are that there is at least something that just doesn’t work when that
prayer is heard by a browser.
If you want to make your page conform to most recent CSS, JavaScript,
and HTML standards, you need to actually know those standards (to a
sufficient degree) and change the page accordingly. Quite often, the
clearly fastest way then is to redesign it from scratch. And you should
not expect any direct gain from this. (It may be useful if you intend to
enhance the page, actually working on it rather than just a conversion
project.)
And it’s actually more about CSS than HTML. Most effects of the magic
incantation relate to CSS (or to default rendering of HTML elements, but
then it’s really a matter of CSS to change that).
--
Yucca,
http://www.cs.tut.fi/~jkorpela/