html - Why did YouTube put a type= attribute in iframe for embedded video? -


when going youtube, gives embed code such as

<iframe title="youtube video player" class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/qrvvzaq6i8a?rel=0"> </iframe> 

note the

type="text/html" 

is not valid html. there's no such attribute iframe tag.

could explain why google put that? guess it's practical reason, couldn't guess what.

ps can embed code going here http://www.youtube.com/watch?v=qrvvzaq6i8a

i guess mistake google itself. suspect mistake. not part of html4, , not part of html5. can safely ignore , remove it.

on type attribute topic: type on object element conforming obsolete. has never been used browsers guess content of uri served.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -