PDA

View Full Version : do different browsers display HTML differently?



vic user
February 18th, 2005, 04:41 AM
i just started about a month or so ago, reading up on how to write web pages.

i have been doing up some pages just using a text editor, and then uploading them to my freenet space.

one thing that i have noticed, is that the web pages look slightly different if i view them using mozilla and then view them using explorer.

it is just little things like explorer not having say only having one blank line between text yet mozilla having two.

why would this be?

here is an example:
-----
<PRE>



Peter Cushing Movies

2 of 2 stories<LI>Dr. Who and the Daleks (dvd)
<LI>Daleks Invasion Earth 2150 A.D. (dvd)

-----

if i use explorer, the text appears like this:

-----
Peter Cushing Movies

2 of 2 stories
1. Dr. Who and the Daleks (dvd)
2. Daleks Invasion Earth 2150 A.D. (dvd)
-----

if i use mozilla, the text appears like this:

-----
Peter Cushing Movies
2 of 2 stories

1. Dr. Who and the Daleks (dvd)
2. Daleks Invasion Earth 2150 A.D. (dvd)
-----

I am not the swiftest when it comes to browsers or HTML, so maybe it is something very simple?

chris

vic user
February 18th, 2005, 04:45 AM
jj

vic user
February 18th, 2005, 04:46 AM
one more time, :oops:

>PRE<

>P<>B<Peter Cushing Movies>/B<

2 of 2 stories>OL<>LI<Dr. Who and the Daleks (dvd) 1965
>LI<Daleks Invasion Earth 2150 A.D. (dvd) 1966
>/OL<


Peter Cushing Movies

2 of 2 stories
1. Dr. Who and the Daleks (dvd)
2. Daleks Invasion Earth 2150 A.D. (dvd)

carlsson
February 18th, 2005, 07:31 AM
Maybe taking a screenshot and upload to your web page is a better way to explain what you mean. But yes, there are minor differences both in the rendering engines and the default fonts etc.

Even more interesting it gets that day you're ready to read up on cascading style sheets and try to apply it according to the specification and find that some of the items does not seem to make any difference at all, while other only work in one browser or some work in all browsers but give different results. Some browsers follow the specification, while other on purpose (?) break it, and it is not one which always is "bad" and one which always is "good".

Exluddite
February 18th, 2005, 03:55 PM
There are supposed to be standards set by the W3C (I think they are the ones) but some browsers are more compliant than others.
I just remembered this on Slashdot:
http://www.howtocreate.co.uk/browserSpeed.html
it's a browser speed comparison. Sort of off the topic, but interesting.