Horje

How to add HTML <img> crossorigin Attribute

The crossorigin attribute on an <img> tag specifies that CORS is supported when loading an image from a third party server or domain.

CORS is a standard mechanism used to retrieve files from other domains.

index.html
Example: HTML
<img crossorigin="anonymous" src="https://horje.com/avatar.png" alt="Van Gogh, self-portrait">

Output should be:

How to add HTML <img> crossorigin Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin