Why is it recommended to use "script type='text/javascript'" over "script language='javascript'" in PHP?

It is recommended to use "script type='text/javascript'" over "script language='javascript'" because the latter is deprecated in HTML5. Using "script type='text/javascript'" ensures compatibility with modern browsers and adheres to current web standards.

echo '<script type="text/javascript" src="example.js"></script>';