/    Sign up×
Bounties /Pin to ProfileBookmark

What is the purpose of `link rel=”image_src”` in an HTML document?

+ 1,000
Copy linkTweet thisAlerts:
Dec 13.2022

I have seen this when viewing source on some sites and it’s not clear to me why I need to include it.

to post a answer
HTML

8 Replies

Copy linkTweet thisAlerts:
@themolitorDec 15.2022 — Heyyy 🤣
Copy linkTweet thisAlerts:
@hqauthorDec 20.2022 — Thanks for the post @Sibert, but to claim the bounty, please post a full response here to receive the SATS reward. 👍
Copy linkTweet thisAlerts:
@StarryDec 23.2022 — The rel means the type of link, the kind of the thing between the document and the resource that's used. Thats most of the time just a few words like stylesheet is used. Although many other words have been proposed and used.
Copy linkTweet thisAlerts:
@Hot_HeadGamingDec 23.2022 — The link rel="image_src" tag lets you control what image (or images, you can have more than one by stacking separate references) is displayed alongside your link.
Copy linkTweet thisAlerts:
Dec 24.2022 — For some reason the example isn't shown. Here:
Copy linkTweet thisAlerts:
Dec 24.2022 — link rel="image_src" href="https://example.com/image.jpg"
Copy linkTweet thisAlerts:
@codiJan 04.2023 — link rel="image_src" is an HTML tag that specifies the location of an image that should be used when a webpage is shared on social media or other platforms. It is used to specify the image that will be displayed when the webpage is shared on platforms such as Facebook or Twitter.

For example:



This tag is included in the head section of the HTML document and allows web developers to specify the image that will be used as a thumbnail when the webpage is shared. This can be useful for increasing the visibility of a webpage on social media platforms, as a well-chosen image can attract more attention and increase the chances that the webpage will be shared.
Copy linkTweet thisAlerts:
@1Jan 20.2023 — The rel attribute defines the relationship between a linked resource and the current document.
×

Success!

Help @hq spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...