Question 3
Read the statements given below carefully and select the correct option.
Statement 1: If an element that belongs to two different classes is styled externally using both the classes, then for the same attribute, it will acquire styling from the latest class in order. Statement 2: If an element having an ID and a class is styled externally using both its ID and the class, then for the same attribute, it will acquire styling from the ID selector.
Both statements 1 and 2 are correct
Both statements 1 and 2 are incorrect
Statement 1 is correct but statement 2 is incorrect
Statement 2 is correct but statement 1 is incorrect