1
I would like to know why browsers read the same page (HTML, CSS and scripts) and the displayed result is different in some cases.
1
I would like to know why browsers read the same page (HTML, CSS and scripts) and the displayed result is different in some cases.
2
Within the browser, the party responsible for reading and interpreting HTML and CSS is called the rendering engine or rendering mechanism (in English Rendering engine), and there are several different mechanisms in the market, for this reason the page is presented differently.
It can be said that the rendering engine is one of the main components of the browser, and some rendering engines have become famous and started to be used by more than one browser.
For example, the Webkit is used by Safari (Apple), and was used by Opera and Google Chrome until recently, when it was replaced by Blink.
There are still the Javascript interpreters, whose purpose is to interpret and execute the page’s Javascript codes, and which are also reused by more than one browser, such as the V8 of Google and the Spidermonkey and the Rhino mozilla.
1
The fact that many browsers adopt different rendering mechanisms makes it one of the main reasons for this to happen, let’s see for example:
SO
, however
when a source is not specified, then it is up to the browser to decide.-webkit-*
when using the CSS
.Still speaking of engines, of all browsers currently in existence, I believe that at present no one uses the same engine, whether for the layout as for the execution of scripts.
Apart from that there are several other problems that are the sole responsibility of the encoder, or almost this:
HTML
- simple statements like <!doctype *>
or the shiv
that arrives more as I arrange and so on.js
instead of css
.And several others among them. But I believe that the biggest problem is related to the structuring of the code HTML
- semantics, outline, etc - and of the CSS
- estates -, other than that, the rest is less I think.
Browser other questions tagged javascript html css browser
You are not signed in. Login or sign up in order to post.
The answer is simple: Because they use different rendering engines, see: https://es.wikipedia.org/wiki/Motor_de_rendering
– juniorb2ss