I am working on a project which requires me to detect and extract the embed code of videos on a web page.
I know the tag is used to embed videos, however, the specification says that it can also be used for other things like images.
So how do i deterministically know that an tag contains a video within? or is there some other way to find this out?