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".
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?
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?
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".
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!
sorry, it didnt post the code I had..
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):
or using object tag like this:
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?
@Senff How do you post code like you did?
I figured it out.
Why iframe's invalid? As I know:
frameborder,allowtransparecy,scrollingTry this: