img translate attribute
The translate attribute on the img element:
- → indicates that the content of the alt attribute of an embedded image through img tag, is translatable
- is a global attribute → can be applied on all html elements;
- when applied on the root element <html>, its value is inherited by all other html elements
Examples
<img | attribute | = | "value(s)" | > | Examples | ||
---|---|---|---|---|---|---|---|
21. | translate | = | "", yes, no | <src=".." alt="alt text " translate> <src=".." alt="alt text " translate="yes"> <src=".." alt="alt text " translate="no"> |
Video demonstration img translate attribute
HTML5 img translate attribute Tutorial
min | video details |
---|---|
00:02 | video tutorial: translate attribute on img |
00:13 | translate attribute on img indicates that the content of the alt attribute, type text, is translatable |
00:35 | "coucher de soleil" has been translated in English: sunset |