📄 tag_object.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML OBJECT TAG</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" type="text/css" href="../stdtheme.css" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<a name="top"></a>
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#808080">
<tr>
<td width="234" valign="top">
<a href="../default.htm"><img src="../images/w3default80.jpg" border="0" alt="W3Schools" /></a>
</td>
<th valign="middle" align="left" class="right">
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*txtimg*/
google_ad_slot = "5330033957";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<noscript>
<a href="../default.asp" target="_blank"><img src="../banners/w6.gif" border="0" alt="W3Schools" /></a>
</noscript>
<br /></th>
</tr>
</table>
<table style="margin-left:1px" width="800px" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="137" class="content" valign="top"><br />
<a class="left" href="../default.asp" target="_top">
<img src="../images/homeicon.gif" border="0" alt="home" /></a>
<a class="left" href="../default.asp" target="_top">
<b>HOME</b></a>
<br /><br />
<a target="_top" href="default.asp" >Full Overview</a><br />
<br />
<b>HTML Tags</b><br /><br />
<a target="_top" href="tag_comment.asp" ><!--></a><br />
<a target="_top" href="tag_doctype.asp" ><!DOCTYPE></a><br />
<a target="_top" href="tag_a.asp" ><a></a><br />
<a target="_top" href="tag_abbr.asp" ><abbr></a><br />
<a target="_top" href="tag_acronym.asp" ><acronym></a><br />
<a target="_top" href="tag_address.asp" ><address></a><br />
<a target="_top" href="tag_applet.asp" ><applet></a><br />
<a target="_top" href="tag_area.asp" ><area></a><br />
<a target="_top" href="tag_font_style.asp" ><b></a><br />
<a target="_top" href="tag_base.asp" ><base></a><br />
<a target="_top" href="tag_basefont.asp" ><basefont></a><br />
<a target="_top" href="tag_bdo.asp" ><bdo></a><br />
<a target="_top" href="tag_font_style.asp" ><big></a><br />
<a target="_top" href="tag_blockquote.asp" ><blockquote></a><br />
<a target="_top" href="tag_body.asp" ><body></a><br />
<a target="_top" href="tag_br.asp" ><br></a><br />
<a target="_top" href="tag_button.asp" ><button></a><br />
<a target="_top" href="tag_caption.asp" ><caption></a><br />
<a target="_top" href="tag_center.asp" ><center></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><cite></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><code></a><br />
<a target="_top" href="tag_col.asp" ><col></a><br />
<a target="_top" href="tag_colgroup.asp" ><colgroup></a><br />
<a target="_top" href="tag_dd.asp" ><dd></a><br />
<a target="_top" href="tag_del.asp" ><del></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><dfn></a><br />
<a target="_top" href="tag_dir.asp" ><dir></a><br />
<a target="_top" href="tag_div.asp" ><div></a><br />
<a target="_top" href="tag_dl.asp" ><dl></a><br />
<a target="_top" href="tag_dt.asp" ><dt></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><em></a><br />
<a target="_top" href="tag_fieldset.asp" ><fieldset></a><br />
<a target="_top" href="tag_font.asp" ><font></a><br />
<a target="_top" href="tag_form.asp" ><form></a><br />
<a target="_top" href="tag_frame.asp" ><frame></a><br />
<a target="_top" href="tag_frameset.asp" ><frameset></a><br />
<a target="_top" href="tag_head.asp" ><head></a><br />
<a target="_top" href="tag_hn.asp" ><h1> - <h6></a><br />
<a target="_top" href="tag_hr.asp" ><hr></a><br />
<a target="_top" href="tag_html.asp" ><html></a><br />
<a target="_top" href="tag_font_style.asp" ><i></a><br />
<a target="_top" href="tag_iframe.asp" ><iframe></a><br />
<a target="_top" href="tag_img.asp" ><img></a><br />
<a target="_top" href="tag_input.asp" ><input></a><br />
<a target="_top" href="tag_ins.asp" ><ins></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><kbd></a><br />
<a target="_top" href="tag_label.asp" ><label></a><br />
<a target="_top" href="tag_legend.asp" ><legend></a><br />
<a target="_top" href="tag_li.asp" ><li></a><br />
<a target="_top" href="tag_link.asp" ><link></a><br />
<a target="_top" href="tag_map.asp" ><map></a><br />
<a target="_top" href="tag_menu.asp" ><menu></a><br />
<a target="_top" href="tag_meta.asp" ><meta></a><br />
<a target="_top" href="tag_noframes.asp" ><noframes></a><br />
<a target="_top" href="tag_noscript.asp" ><noscript></a><br />
<a target="_top" href="tag_object.asp" style='font-weight:bold;'><object></a><br />
<a target="_top" href="tag_ol.asp" ><ol></a><br />
<a target="_top" href="tag_optgroup.asp" ><optgroup></a><br />
<a target="_top" href="tag_option.asp" ><option></a><br />
<a target="_top" href="tag_p.asp" ><p></a><br />
<a target="_top" href="tag_param.asp" ><param></a><br />
<a target="_top" href="tag_pre.asp" ><pre></a><br />
<a target="_top" href="tag_q.asp" ><q></a><br />
<a target="_top" href="tag_strike.asp" ><s></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><samp></a><br />
<a target="_top" href="tag_script.asp" ><script></a><br />
<a target="_top" href="tag_select.asp" ><select></a><br />
<a target="_top" href="tag_font_style.asp" ><small></a><br />
<a target="_top" href="tag_span.asp" ><span></a><br />
<a target="_top" href="tag_strike.asp" ><strike></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><strong></a><br />
<a target="_top" href="tag_style.asp" ><style></a><br />
<a target="_top" href="tag_sup.asp" ><sub></a><br />
<a target="_top" href="tag_sup.asp" ><sup></a><br />
<a target="_top" href="tag_table.asp" ><table></a><br />
<a target="_top" href="tag_tbody.asp" ><tbody></a><br />
<a target="_top" href="tag_td.asp" ><td></a><br />
<a target="_top" href="tag_textarea.asp" ><textarea></a><br />
<a target="_top" href="tag_tfoot.asp" ><tfoot></a><br />
<a target="_top" href="tag_th.asp" ><th></a><br />
<a target="_top" href="tag_thead.asp" ><thead></a><br />
<a target="_top" href="tag_title.asp" ><title></a><br />
<a target="_top" href="tag_tr.asp" ><tr></a><br />
<a target="_top" href="tag_font_style.asp" ><tt></a><br />
<a target="_top" href="tag_u.asp" ><u></a><br />
<a target="_top" href="tag_ul.asp" ><ul></a><br />
<a target="_top" href="tag_phrase_elements.asp" ><var></a><br />
<br />
<b>Selected Reading</b><br />
<a class="left" target="_top" href="../browsers/browsers_stats.asp">Web Statistics</a><br />
<a class="left" target="_top" href="../site/site_glossary.asp">Web Glossary</a><br />
<a class="left" target="_top" href="../hosting/default.asp">Web Hosting</a><br />
<a class="left" target="_top" href="../quality/default.asp">Web Quality</a><br /><br />
<a class="left" target="_top" href="../forum/default.asp">W3Schools Forum</a><br /><br />
<a class="left" target="_top" href="../about/about_helping.asp">Helping W3Schools</a><br /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*LeftLinkUnit*/
google_ad_slot = "4854527104";
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td valign="top">
<table style="border: 1px solid gray" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<h1>HTML <object> tag</h1>
<hr />
<h2>Definition and Usage</h2>
<p>Defines an embedded object. Use this element to add multimedia to
your XHTML page. This element allows you to specify the data and parameters for
objects inserted into HTML documents, and the code that can be used to
display/manipulate that data.</p>
<hr />
<h2>Differences Between HTML and XHTML</h2>
<p>NONE</p>
<hr />
<h2>Tips and Notes</h2>
<p><b>Note: </b>An object element can appear inside the head or the body
element. The text between the <object> and </object> is the
alternate text, for browsers that do not support this tag. The <param>
tags define run-time settings for the object.</p>
<p><b>Tip: </b>For images use the <img> tag instead of the <object>
tag.</p>
<hr />
<h2>Example</h2>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<th align="left" width="70%">Source</th>
<th align="left" width="30%">Output</th>
</tr>
<tr>
<td valign="top"><object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628"
id="Slider1" width="100" height="50"><br />
<param name="BorderStyle" value="1" /><br />
<param name="MousePointer" value="0" /><br />
<param name="Enabled" value="1" /><br />
<param name="Min" value="0" /><br />
<param name="Max" value="10" /><br />
</object></td>
<td valign="top">
<object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628" id="Slider1" width="100" height="50">
<param name="BorderStyle" value="1" />
<param name="MousePointer" value="0" />
<param name="Enabled" value="1" />
<param name="Min" value="0" />
<param name="Max" value="10" />
</object>
</td>
</tr>
</table>
<br />
<hr />
<h2>Optional Attributes</h2>
<p><b>DTD</b> indicates in which <a href="tag_doctype.asp">DTD</a> the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.</p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<th align="left" width="20%">Attribute</th>
<th align="left" width="20%">Value</th>
<th align="left" width="55%">Description</th>
<th align="left" width="5%">DTD</th>
</tr>
<tr>
<td valign="top">align</td>
<td valign="top">left<br />
right<br />
top<br />
bottom</td>
<td valign="top">Defines the text alignment around the object</td>
<td valign="top">TF</td>
</tr>
<tr>
<td valign="top">archive</td>
<td valign="top">URL</td>
<td valign="top">A space separated list of URL's to archives. The archives contains
resources relevant to the object</td>
<td valign="top">STF</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -