Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how do you convert iframe code to object code for validation??

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #40590
    c_parsonage
    Member

    I am trying to embed a youtube video in my html page, and I need to convert iframe code to object code for validation. any tips?

    #113267
    Senff
    Participant

    Just use the code that Youtube gives you, either the iFrame version or the old-school embedded version. Don’t worry about validation. If something doesn’t validate, it doesn’t necessarily mean it’s “wrong” or “bad”.

    #113268
    c_parsonage
    Member

    I have read that but I need it to validate for my assignment…is there a way to make it work? the code im using is:

    I appreciate the help!

    #113270
    c_parsonage
    Member

    sorry, it didnt post the code I had..

    #113272
    Senff
    Participant

    Use this code to embed a Youtube video in an iframe (change “xxxxxxxxxxx” to the ID of your own video and change the dimensions if needed):

    #113275
    c_parsonage
    Member

    I have done that but it still isn’t validating :( its saying that all the attributes don’t exist: src, height, width etc… I am not using a container, will this affect it?

    #113278
    Taufik Nurrohman
    Participant

    Why iframe’s invalid?
    As I know:

    1. frameborder, allowtransparecy, scrolling
    2. Size attribute with units (px,%,etc)

    Try this:

    <iframe src="..." width="600" height="250" style="border:none;background:transparent;overflow:hidden;"></iframe>
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.