When the question is how the web platform behaves, MDN is the first source to open. It documents HTML, CSS, JavaScript and the Web APIs with definitions, syntax, runnable examples and links to the spec. It is an open project from Mozilla, written together with the community and partners such as Open Web Docs.
The most useful part sits at the bottom of the page: the compatibility table. It tells you which version of each browser shipped the feature and whether there are caveats. That data comes from the open browser-compat-data project, the same one that feeds Can I use. Before shipping a new API, that table tells you whether you need a fallback.
Two traps. Translations can lag behind the English version, so on recent topics read the original. And a forum or AI answer that contradicts MDN is usually the wrong one; check the page before copying. There is a paid tier, MDN Plus, but the documentation itself is free.