- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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):
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?
Why iframe’s invalid?
As I know:
frameborder
, allowtransparecy
, scrolling
Try this:
<iframe src="..." width="600" height="250" style="border:none;background:transparent;overflow:hidden;"></iframe>