Backwards Compatibility Vs Forwards Compatibility
Implying, any code written decades ago however primitive or legacy it may appear, should still work today. This principle serves as a token of trust for developers, assuring the longevity of code, even if archaic or widely considered legacy.
HTML & CSS are forwards-compatible but not backwards-compatible. So, it will come as no surprise if you find certain HTML code from early 2000s not working today – for example
<center> tag used to horizontally center align the content is deprecated in HTML5 and doesn’t work anymore.
In summary, backward compatibility allows old JS to function seamlessly with newer JS engines, while forward compatibility enables newer versions of HTML/CSS to work harmoniously with legacy browsers and platforms.
Suggested Reading : You Don’t Know JS Yet by Kyle Simpson
That is all for today. If you found this post useful consider sharing it with friends & subscribe using RSS or Telegram.
Reply via mail