Agyan
adda
Run
Reset
Copy
HTML Tutorial › HTML Elements › Nested elements
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<div> <h2>My favourite fruits</h2> <ul> <li>Mango</li> <li>Banana</li> </ul> <p>Elements can be <strong>nested</strong> inside other elements.</p> </div>
Result