3 ms·
W3Schools tends to have a usable piece of example code at the very top of the page, while MDN gives an introduction and broader idea. Compare the display proper
by schnevets 9y ago
W3Schools tends to have a usable piece of example code at the very top of the page, while MDN gives an introduction and broader idea. Compare the display property page at the top of W3Schools vs MDN:
W3Schools: https://www.w3schools.com/css/css_display_visibility.asp https://www.w3schools.com/css/css_display_visibility.asp
MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/display https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d...
Combine this and the higher Google rankings (My usual front-end searches display W3Schools, then StackOverflow, then sometimes JQuery or another library, then MDN), and you can understand where the problem lies.
- pawelk 9y agoYou should at least compare the docs for the same thing. For the w3schools article on CSS Display [1] the MDN counterpart would be https://developer.mozilla.org/en-US/docs/Web/CSS/display https://developer.mozilla.org/en-US/docs/Web/CSS/display and to compare SVG docs on MDN vs w3schools I have a hard time finding an article with similar depth of information. I agree there's a ranking problem, that's why I usually append "MDN" to my front-end related searches. [1] The w3schools article on CSS display is limited to three values (block/inline/none) and doesn't even hint there are more possibilities, the most notable omissions being table and flex. It even has an example of overriding the default display ("channging inline to block and vice versa") that uses an `<li>` which, by default, has `display: list-item`, and still doesn't mention it.