I like the concept of what you’ve built but question some of the mark-up:
<p> tags are a block element and should not be inside an inline element. While you CAN do it, it’s not recommended. You would be better served using a <dl>, <dt>, and <dd>, for the drinks and their ingredients since you are defining what elements make up that particular drink.
I like this idea. For some reason, unfortunately, description lists are not very popular among people who write HTML. In this case the <dl> would be a great fit.
Aurora Johansen-Ward
11y agoI like the concept of what you’ve built but question some of the mark-up:
<p> tags are a block element and should not be inside an inline element. While you CAN do it, it’s not recommended. You would be better served using a <dl>, <dt>, and <dd>, for the drinks and their ingredients since you are defining what elements make up that particular drink.
Andreas Krüger
11y agoI like this idea. For some reason, unfortunately, description lists are not very popular among people who write HTML. In this case the <dl> would be a great fit.