Solved

Clean, Sleek, Valid HTML5, Vimeo embed Codes

Posted on 2013-12-09
3
1,265 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
2 CSS questions 11 35
Bootstrap Datable Spinner 3 31
Open a div with click on an image 7 44
SVG Star 4 16
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.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now