diffsnack
HTMLAttribute

What is srclang in HTML?

On <track>, gives the language code of the text track file, such as en or de. It is required when kind="subtitles".

Example

<track kind="subtitles"
src="subs-en.vtt" srclang="en">

Practice HTML in a 2-minute game →