<!DOCTYPE html>
<html lang="en-US">
<body>
<details open>
<summary>List to be purchased</summary>
<ul>
<li>Apple - 1kg</li>
<li>Banana - 2 Nos</li>
<li>Indian Gooseberry - 10 Nos</li>
</ul>
</details>
<p><strong>Note: open</strong> attribute, opened the list by default.</p> </body>
</html>