Solved

Clean, Sleek, Valid HTML5, Vimeo embed Codes

Posted on 2013-12-09
3
1,350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML question 2 33
Ajax on ASP 2 66
toggle content 12 39
In wordpress, how did they do that? 3 9
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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…

737 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