Wrapping custom components in a DIV?

I was looking around for a Pinterest button and I didn't see one, so I created a custom component. The default code is a <div></div>. Should I put the Pinterest link inside the <div> or just leave it at a vanilla <a> tag?

Here's the Pinterest Developer Page.

From what I see, you shouldn't need to use a Custom Code component. Just drag a link to where you want on your page, and remove the text. Then open the HTML pane and then the ATTRIBUTE pane and add your attributes as you need with the PLUS sign button.

< a data-pin-do="embedPin" href="https://www.pinterest.com/pin/99360735500167749/"></a>

And don't forget to right click on Javascript menu on the bottom right have select external JS then paste in "//assets.pinterest.com/js/pinit.js" I don't think you can add the async and defer attributes to it though.