Embed a Youtube/Vimeo video onto a page without iframes

From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.

Announcements Posted on
TSR launches Learn Together! - Our new subscription to help improve your learning 16-05-2013
Sign in to Reply
  1. purplefrog's Avatar
    • PS Helper
    • Overlord in Training
    • Location: UCL
    • Posts: 2,603
    Embed a Youtube/Vimeo video onto a page without iframes
    Does anybody know the HTML code and the parameters I would need to use to embed a video from vimeo/youtube without using iframes? I want the video to still be hosted on youtube/vimeo, just don't want to use the iframes.
  2. Dez's Avatar
    • TSR Group Staff
    • The square root of rope is string.
    • Location: The South
    • Posts: 8,125
    Re: Embed a Youtube/Vimeo video onto a page without iframes
    (Original post by purplefrog)
    Does anybody know the HTML code and the parameters I would need to use to embed a video from vimeo/youtube without using iframes? I want the video to still be hosted on youtube/vimeo, just don't want to use the iframes.
    Why not?
  3. purplefrog's Avatar
    • PS Helper
    • Overlord in Training
    • Location: UCL
    • Posts: 2,603
    Re: Embed a Youtube/Vimeo video onto a page without iframes
    (Original post by Dez)
    Why not?
    want to keep my code valid with the DTD I'm using
    If need be, I'll use iframes, though will then have to hide the little self-validation link in my footer. So purely for ego purposes.
  4. Dez's Avatar
    • TSR Group Staff
    • The square root of rope is string.
    • Location: The South
    • Posts: 8,125
    Re: Embed a Youtube/Vimeo video onto a page without iframes
    (Original post by purplefrog)
    want to keep my code valid with the DTD I'm using
    If need be, I'll use iframes, though will then have to hide the little self-validation link in my footer. So purely for ego purposes.
    As far as I can recall, there are no DTDs that disallow the use of the iframe element. Also, putting "This site is standards compliant" stickers on your website is a ridiculous practice that needs to die a horrid, yet rapid death.
  5. estel's Avatar
    • TSR Idol
    • Location: Bristol
    • Posts: 9,352
    Re: Embed a Youtube/Vimeo video onto a page without iframes
    (Original post by purplefrog)
    want to keep my code valid with the DTD I'm using
    If need be, I'll use iframes, though will then have to hide the little self-validation link in my footer. So purely for ego purposes.
    Further to what Dez said, if you're not using the html5 doctype then you're doing it wrong.
Sign in to Reply
Share this discussion:  
Useful resources
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.