-3

I am working on converting a web page from HTML 4 to HTML 5. I have noted that two major differences, which caused me lots of problems, is that class names are case-sensitive in HTML 5 and that statements like "width: 10;" are not allowed in CSS files used by HTML 5 pages, the statements have to be "width: 10px;". One possible reason for my experience is that my HTML 4 documents is in Quirks mode, also known as "HTLM 4 Transitional".

1 Answers1

0

There are numerous differences that make a brief answer nearly impossible.

Here are a few key points and pointers for further research:

  • You'll want to switch to a standards based doctype, e.g. <!DOCTYPE html>, in order to maximize your compatibility with many browsers.

  • The W3C summary of differences may be helpful.

  • Online scanners, such as the W3C validator or the IE compatibility check may help flag some issues.

  • Many problems (and solutions) are known. If you're unsure, sites like Can I use?, MDN, HTML5 rocks, and others are immensely useful.

In general, you may find it easier to create a new design from scratch, rather than trying to retrofit an older design to fit new capabilities and design patterns.

Hope this helps...

-- Lance

Lance Leonard
  • 3,285
  • 3
  • 16
  • 15