I have an Array ["Apple", "Orange", "Pineapple"]
How do i convert it to the below list.
<ul>
<li id = "header">A</li>
<li id = "list" >Apple</li>
<li id = "header">O</li>
<li id = "list" >Orange</li>
<li id = "header">P</li>
<li id = "list" >Pineapple</li>
</ul>
` with `- ` and `
- ` instead. Seems more appropriate. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl
– Lye Fish Mar 19 '15 at 02:33