A Complete Guide to Web Design

(やまだぃちぅ) #1
166 Chapter 9 – Adding Images and Other Page Elements

Adding Media Files with


Web Design in a Nutshell, eMatter Edition

required plug-in should it not be found on the client machine. Netscape 4.0 intro-
duced thepluginurlattribute, which specifies a link to a function that installs the
plug-in automatically.
The complete list of attributes for the<embed>tag is detailed in the “Summary of
Object Placement Tags” section earlier in this chapter.

Plug-in-Specific Attributes


In addition to these standard attributes, the embed tag may also contain plug-in-
specific attributes for controlling the function of the player. The attributesloop,
autostart, autoplay, and volumeare examples of media-specific controls.
Complete<embed>tags with their respective attributes are listed for several media
types in Chapters 19, 20, and 21 of this book.

<br /> <pre><code>The&lt;noembed&gt; tag provides alternative content that displays if the browser<br /> cannot display the specified media file. In the following example, the browser<br /> would display the contents of the GIF file in place of the media object.<br /> &lt;EMBED SRC="url" HEIGHT="165" WIDTH="250" ALIGN="right"<br /> HSPACE="6"&gt;<br /> &lt;NOEMBED&gt;&lt;IMG SRC="needplugin.gif"&gt;&lt;/NOEMBED&gt;<br /> &lt;/EMBED&gt;</code></pre><br /> <p>Adding Media Files with <object></p><br /> <pre><code>The&lt;object&gt;tag is an all-purpose object-placer. It can be used to place a variety<br /> of object types, such as ActiveX controls, plug-in media, Java applets, images, and<br /> more. The following shows the syntax of a simple&lt;object&gt; tag:<br /> &lt;OBJECT CLASSID="url" CODEBASE="url" DATA="url" TYPE="mimetype"<br /> ID="name"&gt;<br /> Theclassidis the URL of the object’s implementation (the program). It has the<br /> same function as thecodeattribute of the&lt;applet&gt;tag when used for Java<br /> applets. When used for a plug-in media type,classidfunctions like&lt;embed&gt;’s<br /> pluginurlattribute, which points to the place where the appropriate plug-in can<br /> be found and automatically installed.<br /> Codebaseprovides the URL for the plug-in and functions, the same as thecode-<br /> baseattribute in the&lt;applet&gt;tag. For plug-ins,codebaseis the same as the<br /> pluginspage attribute.<br /> Thedataattribute represents the URL of the object itself. It is equivalent to the<br /> srcattribute for the&lt;embed&gt;tag. Thetypeattribute provides the MIME type of<br /> the media object.<br /> Objects placed with the&lt;object&gt;tag can be positioned with the standardalign<br /> attribute, which has the same values as for the&lt;img&gt;tag. If the object is a plug-in,<br /> thewidth andheight attributes may be required for the plug-in to function.</code></pre> </div> <meta itemprop='headline' content="p 180: 166 Chapter 9 – Adding Images and Other Page Elements Adding Media Files with Web Design in a Nutshell, eMatter Edition require ... - A Complete Guide to Web Design - free download pdf - issuhub"> </div> <div role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"> <span itemprop="url"><b><a href="/view/index?id=4334&pageIndex=179" rel="previous" itemprop="name">← Previous</a></b></span> <span itemprop="url" class="mx-3"><b><a href="/view/index?id=4334&pageIndex=181" rel="next" itemprop="name">Next →</a></b></span> </div> <div style=" text-align: center; margin: 20px auto; padding: 13px; width: 240px; font-size: 20px; "> <a class="page-link" style="background-color: #72bf86;" target="_blank" href="/view/index?id=4334&pageIndex=179#bookdownload" title="Free download pdf" >Free download pdf</a> </div> </div> <div class="footer"> <div class="container"> <div class="row"> <div class="col-lg-3 ml-lg-auto mb-5 mb-lg-0"> <div class="mb-4"> <h5 class="text-dark">Get our desktop app</h5> </div> <a class="btn btn-icon btn-indigo rounded-circle mr-2" target="_blank" href="/download/issuhub.dmg"> <i class="fa fa-apple"></i> </a> <a class="btn btn-icon btn-indigo rounded-circle" target="_blank" href="/download/issuhub.exe"> <i class="fa fa-windows"></i> </a> </div> <div class="col-6 col-md-3 col-lg mb-5 mb-lg-0"> <h5 class="text-dark">Company</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"><a href="/about">About</a></li> <li class="my-2"><a href="/contact">Contact</a></li> <li class="my-2"><a href="/news/index">News</a></li> </ul> <!-- End Nav Link --> </div> <div class="col-6 col-md-3 col-lg mb-5 mb-lg-0"> <h5 class="text-dark">Features</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"><a href="/quick">Quick Start</a></li> <li class="my-2"><a href="/desktop">Desktop</a></li> <li class="my-2"><a href="/editor-help">Editor</a></li> </ul> <!-- End Nav Link --> </div> <div class="col-6 col-md-3 col-lg"> <h5 class="text-dark">Documentation</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"><a href="/support/index">Support</a></li> <li class="my-2"><a href="/site/pricing">Pricing</a></li> </ul> <!-- End Nav Link --> </div> <div class="col-6 col-md-3"> <h5 class="text-dark">Resources</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"> <a href="/tutorial" target="_blank"> <span class="media align-items-center"> <i class="fa fa-info-circle mr-2"></i> <span class="media-body">Tutorial</span> </span> </a> </li> <li class="my-2"> <a href="/site/login"> <span class="media align-items-center"> <i class="fa fa-user-circle mr-2"></i> <span class="media-body">Your Account</span> </span> </a> </li> </ul> <!-- End Nav Link --> </div> </div> </div> </div> <div class="footer"> <div class="container"> <div class="row"> <div class="col-md-6 mb-4 mb-md-0"> <!-- Nav Link --> <ul class="nav nav-sm nav-white nav-x-sm align-items-center"> <li class="my-2"> <a href="/privacy">Privacy &amp; Policy</a> </li> <li class=" opacity my-2 mx-3">&#47;</li> <li class="my-2"> <a href="/terms">Terms</a> </li> </ul> <!-- End Nav Link --> </div> <div class="col-md-6 text-md-right"> <ul class="list-inline mb-0"> <!-- Social Networks --> <li class="list-inline-item"> <a class="btn btn-xs btn-icon btn-soft-light" href="https://www.facebook.com/Issuhub-Flipbook-2315543688769343/"> <i class="fa fa-facebook text-dark"></i> </a> </li> <li class="list-inline-item"> <a class="btn btn-xs btn-icon btn-soft-light" href="https://twitter.com/IssuhubBooks"> <i class="fa fa-twitter text-dark"></i> </a> </li> <!-- End Social Networks --> </ul> </div> </div> <!-- Copyright --> <div style="text-align: center;"> <div >&copy; ISSUHUB. 2025. All rights reserved.</div> </div> <!-- End Copyright --> </div> </div> </div> </div> <script src="/assets/6df76c57/assets/js/vendors/jquery-3.2.1.min.js"></script> <script src="/assets/6df76c57/assets/js/vendors/bootstrap.bundle.min.js"></script></body> </html>