1.

Which of the following elements are block and inline elements, respectively, that have no particular rendering?(a) div(b) span(c) box-model(d) both div and spanThis question was posed to me in class test.This interesting question is from CSS and (X)HTML Elements Fundamentals in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct ANSWER is (d) both div and span

The best explanation: The div ELEMENT and span element are BLOCK and inline elements, RESPECTIVELY, that have no particular rendering. You MIGHT call them generic tags. Because these tags don’t have any predefined meaning or rendering, they are very useful for arbitrary style duties.



Discussion

No Comment Found

Related InterviewSolutions