1.

For displaying a list horizontally, we can use ______________(a) (b) display:inline(c) (d) typeI had been asked this question during an interview.I want to ask this question from Numbered, Bullet and Definition Lists in portion Text, Links & Lists of HTML

Answer»

Correct answer is (b) display:inline

To explain I would say: If we want to display the list horizontally we can use display:inline or float:left. It will CREATE a menu. E.g. ul {list-style-type: none; padding:0; OVERFLOW:hidden; } li {float:left} li g{ display: block; color:red; padding: 20px;}.

ELEMENT is used to CONTAIN DEFINITION.
tag is a term in description list.


Discussion

No Comment Found

Related InterviewSolutions