Aim of this tutorial
We shall learn about CSS validity: how to create styles without error.
Why? — for cross-browser compatibility; so that our styles appear as we expect them to, across browsers.
This depends on the following factors:
- Well-formed, semantic mark-up on which the CSS does sit — XHTML validity (or HTML validity or XML validity).
- Proper construction of the styles — CSS validity.
- Avoidance of any proprietary styles.
Propriety styles, as we shall learn today, belong to a browser manufacturer and usually work through its browser only. Those styles are invalid, because they cannot be used across browsers.
Yes, CSS validity is meant for cross-browser compatibility …