Problem Statement
Which of the following ensures better cross-browser compatibility?
Explanation
To ensure consistent rendering across browsers, developers may use vendor prefixes like -webkit-, -moz-, or -ms- for experimental CSS features. Testing on multiple browsers and validating HTML/CSS are also crucial for compatibility.
Code Solution
SolutionRead Only
/* Example: cross-browser prefixes */
.box {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}Practice Sets
This question appears in the following practice sets:
