I think there are two possible reasons:
---------->1.The browser doesn`t support the technology that`s used in a webpage
---------->2.The webpage is badly coded and full of coding errors
You probably think that the first is the most common ,then you are wrong ,there are few sites that use technologies that are not supported by all descent browsers ,for example gmail.com ,that uses ajax.Most of the sites that are not compatible with all browsers because of the coding errors ,because most web browsers are designed to get passed the erros ,I`ll show you and example.
Let`s make a badly coded html and see how all other browsers react to it.
This is out badly coded html:
- Code: Select all
<html>
<table>
<tr>
<td>1</td><br><tr>2</td>
</tr>
</table>
</html>
Now let`s see what happens if I open it in Opera ,Firefox and Konqueror:
Opera http://djdarkman.phoenix-hosting.org/snap/error1.png
Firefox http://djdarkman.phoenix-hosting.org/snap/error2.png
Konqueror http://djdarkman.phoenix-hosting.org/snap/error3.png
See the difference in Opera "1" is exactly below "2" ,but in Firefox and Konqueror there is a space before "1" ,so it`s not exaclty below "2" ,now if I were an Opera fan ,and didn`t know that this webpage is bad I would say "Firefox and Konqueror is buggy ,it works on Opera so it must be good." or "Firefox and Konqueror isn`t as advanced browser as Opera ,because they both lack technologies that Opera has." and so on ,you probably heard/read some excuses like these yourself.
Ok let`s say that I`m not so good at excuses like these and I know a little html and try to correct it to this:
- Code: Select all
<html>
<br>
<table>
<tr>
<td>2</td>
</tr>
<tr>
<td>1</td>
</tr>
</table>
</html>
Now let`s see what happens:
Opera http://djdarkman.phoenix-hosting.org/snap/good1.png
Firefox http://djdarkman.phoenix-hosting.org/snap/good2.png
Konqueror http://djdarkman.phoenix-hosting.org/snap/good3.png
Wow!it looks the same in all browsers ,it looks like I discovered the secret of the univerese ,I made this webpage to be compatible with Firefox and Konqueror too.What did I do?I corrected the code that supposed to display the two numbers and followed the html syntax.
You probably think that this is a good wep page now ,but you`re wrong ,let`s validate it with the w3c validator ,and this is what we get :
Result: Failed validation, 4 errors
File: good.html
Encoding: utf-8
Doctype: (no Doctype found)
You can ask ,how come it has 4 errors if it works on every browser I tested in.Let`s see those errors then:
- Code: Select all
Error Line 1 column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".
<html>
Error Line 2 column 3: document type does not allow element "BR" here.
<br>
Error Line 3 column 6: document type does not allow element "TABLE" here.
<table>
Error Line 11 column 6: end tag for "HTML" which is not finished.
</html>
See ,even a wepage that looks the same in all browsers can have erors.
The best tool to fix these errors is the w3c validator http://validator.w3.org/ ,with it you can correct all errors on your site and it will be compatible with all browsers ,furthermore ,the people in channel #html on the irc.freenode.net IRC network can help you with this ,all you need is a little knowlage of html.
btw: this is not a lame copied blog from somewhere ,you can try o find it ,maybe you will succed ,if google indexes this forum






