[HTML] Update documentation and example code.

String identifiers of resource for the use with res: protocol are
preferred as they provide additional hint about type of the embedded
data.

Updated the example to follow the recommended way. It fixes the
broken image in some MSIE versions. (Reproduced on Win8 with MSIE 10.