Solved

Clean, Sleek, Valid HTML5, Vimeo embed Codes

Posted on 2013-12-09
3
1,308 Views
Last Modified: 2013-12-09
Hi I'm just trying to get Youtube and Vimeo to show as little garbage as possible on the screen before and after it starts playing as well as when it finishes. Right now I have some vimeo embed code that works perfectly:

<iframe src="//player.vimeo.com/video/46914812?title=0&amp;byline=0&amp;portrait=0" width="601" height="338" frameborder="0" mozallowfullscreen allowfullscreen></iframe>

Open in new window


The problem is it doesn't validate (yes I know there are other issues which I'm fixing at the same time):
html5.validator.nu results

Is there a version of this code that uses CSS to achieve the same result? Any help would be appreciated.

Thanks,
Khellar
0
Comment
Question by:khellar
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Angelp1ay earned 500 total points
ID: 39705627
<iframe src="//player.vimeo.com/video/46914812?title=0&amp;byline=0&amp;portrait=0" style="width: 601px; height: 338px; border: 0;" allowfullscreen></iframe>

Open in new window


Looks like Mozilla moved to the prefixless allowfullscreen in March.
https://bugzilla.mozilla.org/show_bug.cgi?id=805301
0
 
LVL 1

Author Closing Comment

by:khellar
ID: 39705634
Brilliant! Thank you!
0
 
LVL 11

Expert Comment

by:Angelp1ay
ID: 39705638
For ref: here's the Mozilla iframe attributes list confirming mozallowfullscreen is deprecated:

https://developer.mozilla.org/en-US/docs/HTML/Element/iframe#attr-mozallowfullscreen
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question