Moving list elements

So, I am trying to design a website, and in part of it, I want elements that I click from a list to appear in another part of the page.

If, for example, there are three items in the first list and I click Item 1 and Item 2, those two should appear in the second part of the website as another list.

What HTML commands/functions could I use to make the items appear in the second list?