richardschneider/cardsJS

card tag

richardschneider opened this issue · 2 comments

Creating a new HTML element, as in <card> is considered bad practice. Using side-by-side <card /> is parsed incorrectly. Basically HTML ignores the "/>", unless it's a predefined void tag. The following does not work

<div> <card cid='AS'/> <card cid='KS'/> </div>

We could use the image tag, as in <img cid='AS' />. <img> is a void tag and it takes less to type!

Changed css, js and documentation to use <img> instead of <card>.