Can we have a nested list in HTML? If so explain with an example.

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 1385 | Points: 40
Answer:

Yes we can have as many nested lists in HTML.
Let us see an example of the same.

Example:

<html> <body>
<h4>Computer Programming Languages:</h4>
<ul>
<li>Low Level Languages
<ul>
<li> Machine language </li>
<li> Assembly language </li>
</ul>
</li>
<li>High Level Languages
<ul>
<li>Algebraic formula type processing</li>
<ul>
<li>BASIC</li>
<li>FORTRAN</li>
</ul>
<li>Business Data processing
<ul>
<li>COBOL</li>
<li>RPG</li>
</ul>
</li>
<li>String and List processing
<ul>
<li>LISP</li>
<li>Prolog</li>
</ul>
</li>
<li>Object oriented programming
<ul>
<li>C++</li>
<li>Java</li>
</ul>
</li>
<li>Visual programming
<ul>
<li> Visual C++</li>
<li>Visual Basic</li>
</ul>
</li>
</ul>
</li>
</ul>
</body>
</html>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response