@J12t Mastodon reads Opengraph metatags. That's what you need to add to your html code, if I understood your question correctly. You'll have a nice preview card generated in Mastodon when someone pastes a link to your webpage.

ogp.me/