HTML and CSS Reference
In-Depth Information
Note Notice that there is not a keyword to override disabling plug-ins. The reason for
this is a plug-in could be built that circumvented some of the other restrictions, present-
ing a vulnerability to any selective restrictions in place. Therefore, plug-ins are always
disabled as long as the sandbox attribute is present.
Targeting inline frames
The iframe has one last attribute—which isn't new—the name attribute, which can be
used to identify a particular inline frame among other inline frames used on a page. Do-
ing so means a particular inline frame can be used as a target for links when the target
attribute is set to a particular inline frame's name. Here's an example:
<iframe name="terms" src="tnc.html">
<a href="tnc.html" target="_blank">View Terms and
<a href="page2.html" target="terms">Next page</a>
In this case, when the “Next page” hyperlink text is clicked, the page2.html page
is loaded into the “terms” inline frame.
More than any other element, the video element is what brought HTML5 into the
public consciousness. To the wider public that just uses the Web, it became known
that videos on YouTube could not be viewed on the iPhone/iPad because YouTube
used Adobe Flash for displaying video. 6 However, there existed a new solution called
“HTML5” that could display video on the iPhone/iPad. Exactly what that meant was
no doubt lost on the majority of users of the Web, but for you and others like you, it
means there is a new element, video , that allows video files to be embedded into a
web page without the use of any third-party plug-ins. It means native video playback in
the browser. This differs from using object for video playback, because object just
hands the video content off to a plug-in.
6 YouTube still predominantly uses Flash, but it has an HTML5 player at
l5 , and videos viewed with a device that does not support Flash will fall back to using this HTML5
video player.
Search WWH ::

Custom Search