HTML元素参考手册 HTML Elements Reference.docx
- 文档编号:10129964
- 上传时间:2023-02-08
- 格式:DOCX
- 页数:72
- 大小:41.92KB
HTML元素参考手册 HTML Elements Reference.docx
《HTML元素参考手册 HTML Elements Reference.docx》由会员分享,可在线阅读,更多相关《HTML元素参考手册 HTML Elements Reference.docx(72页珍藏版)》请在冰豆网上搜索。
HTML元素参考手册HTMLElementsReference
HTML元素参考手册HTMLElementsReference
a
表示超链接的起始或目的位置。
Designatesthestartordestinationofahypertextlink.
注释
元素a需要指定href或name属性。
文本和图像都可包含在锚内。
作为锚的图像有一个边框,该边框颜色表明该链接是否被访问过。
要避免显示此边框,你可设置 img元素的BORDER标签属性为0或者省略BORDER标签属性。
你还可以使用样式表CSS来覆盖a和 img元素的默认外观。
注意 当对象table包含在a标签内时可能工作不正常。
如果对元素A应用time2行为的话,那么该元素仅当在时间线上激活时才会变成链接。
此元素在InternetExplorer3.0及以上版本的HTML和脚本中可用。
此元素是内嵌元素。
此元素需要关闭标签。
Theaelementrequiresthehreforthenamepropertytobespecified.
Bothtextandimagescanbeincludedwithinananchor.Animagethatisananchorhasaborderwhosecolorindicateswhetherthelinkhasbeenvisited.Topreventthisborderfromdisplaying,youcansettheimgelement'sBORDERattributeto0oromittheBORDERattribute.YoucanalsouseCascadingStyleSheets(CSS)attributestooverridethedefaultappearanceofaandimgelements.
Note Atableobjectdoesnotfunctionproperlywhencontainedwithinanatag.
Ifthetime2behaviorisappliedtotheAelement,itwillbecomealinkonlywhenitisactiveonthetimeline.
ThiselementisavailableinHTMLandscriptasofInternetExplorer3.0.
Thiselementisaninlineelement.
Thiselementrequiresaclosingtag.
示例代码
--Linktoaserver.链接到服务器-->
--Linktoafileinthesamedirectory.链接到同一目录的文件-->
--OpenafileinthewindowspecifiedbyTARGET.在由TARGET指定的窗口中打开文件-->
--IncludeanIMGelementasapartofthelink.将IMG元素作为链接的一部分。
-->
--Linktoananchor.链接到锚。
-->
--Defineananchor.定义一个锚-->
--InvokeaJScriptfunction调用JScript函数-->
window.open()">link acronym 表示取首字母的缩写词。 Indicatesanacronymabbreviation. 注释 此元素在InternetExplorer4.0及以上版本的HTML和脚本中可用。 此元素是内嵌元素。 此元素需要关闭标签。 TheacronymelementisavailableinHTMLandscriptasofInternetExplorer4.0. Thiselementisaninlineelement. Thiselementrequiresaclosingtag. 示例代码 MSN 另见 address,cite,dfn,em,i address 表示特定信息,如地址、签名、作者、文档信息。 Specifiesinformation,suchasaddress,signature,andauthorship,ofthecurrentdocument. 注释 InternetExplorer将address元素的内容以斜体显示。 此元素在InternetExplorer3.0及以上版本的HTML中可用,在InternetExplorer4.0及以上版本的脚本中可用。 此元素是一个块元素。 此元素需要关闭标签。 InternetExplorerdisplaysthecontentofanaddresselementinitalics. ThiselementisavailableinHTMLasofInternetExplorer3.0,andinscriptasofInternetExplorer4.0. Thiselementisablockelement. Thiselementrequiresaclosingtag. 示例代码
另见
acronym,cite,dfn,em,i
applet
在页面上放置可执行内容。
Placesexecutablecontentonthepage.
注释
要使用由applet元素指定的可执行内容,用户的计算机上必须安装Microsoft虚拟机(Microsoftvirtualmachine)。
此元素在InternetExplorer3.0及以上版本的HTML中可用,在InternetExplorer4.0及以上版本的的脚本中可用。
此元素是一个内嵌元素。
此元素需要关闭标签。
Touseexecutablecontentspecifiedbytheappletelement,auser'scomputermusthavetheMicrosoftvirtualmachine(MicrosoftVM)installed.
ThiselementisavailableinHTMLasofInternetExplorer3.0,andinscriptasofInternetExplorer4.0.
Thiselementisaninlineelement.
Thiselementrequiresaclosingtag.
标准信息
该对象已不建议使用,将可能在今后HTML标准中废弃。
ThisobjectisdeprecatedinHTML.
见http:
//www.w3.org/TR/html401/index/elements.html
area
定义一个客户端图像映射中一个超级链接区域的形状、坐标和关联URL。
Definestheshape,coordinates,andassociatedURLofonehyperlinkregionwithinaclient-sideimagemap.
注释
在同一个 map元素中可包含任意多个 area元素。
COORDS值的格式取决于SHAPE标签属性的值。
此元素在InternetExplorer3.0及以上版本的HTML中可用,在InternetExplorer4.0及以上版本的脚本中可用。
此元素不会改变显示格式。
此元素需要关闭标签。
Anynumberofareaelementscanbecontainedwithinthesamemapelement.
TheformatoftheCOORDSvaluedependsonthevalueoftheSHAPEattribute.
ThiselementisavailableinHTMLasofInternetExplorer3.0,andinscriptasofInternetExplorer4.0.
Thiselementisnotrendered.
Thiselementdoesnotrequireaclosingtag.
示例代码
下面的例子提供了一个太阳系的图像映射代码。
该代码在 map元素中使用 area元素及其COORDS值和SHAPE标签属性创建了由图象映射指向单个行星图像的链接。
要返回到太阳系图像映射,用户可以单击后退按钮。
Thisexampleprovidesthecodeforanimagemapofthesolarsystem.Itcreateslinksfromtheimagemaptoindividualimagesoftheplanetsusingtheareaelementwiththemapelement,COORDSvalue,andSHAPEattribute.Theuserclicksthesunoranyplanettolinktoanindividualimage.Toreturntothesolarsystemimagemap,theuserclickstheBackbutton.
演示示例
b
指定文本应以粗体显示。
Specifiesthatthetextshouldberenderedinbold.
注释
此元素在InternetExplorer3.0及以上版本的HTML中可用,在InternetExplorer4.0及以上版本的脚本中可用。
此元素是内嵌元素。
此元素需要关闭标签。
ThebelementisavailableinHTMLasofInternetExplorer3.0,andinscriptasofInternetExplorer4.0.
Thiselementisaninlineelement.
Thiselementrequiresaclosingtag.
示例代码
Thistextdisplaysboldface.此文本以粗体显示。
另见
strong
base
指定一个显式URL用于解析对于外部源的链接和引用,如图像和样式表。
SpecifiesanexplicitURLusedtoresolvelinksandreferencestoexternalsourcessuchasimagesandstylesheets.
元素说明
当使用时,base元素必须出现在文档的head内,在任何用于引用外部资源的元素之前。
此元素在InternetExplorer3.0及以上版本的HTML中可用,在InternetExplorer4.0及以上版本的脚本中可用。
此元素不改变内容的显示格式。
此元素不需要关闭标签。
Whenused,thebaseelementmustappearwithintheheadofthedocument,beforeanyelementsthatrefertoanexternalsource.
ThiselementisavailableinHTMLasofInternetExplorer3.0,andinscriptasofInternetExplorer4.0.
Thiselementisnotrendered.
Thiselementdoesnotrequireaclosingtag.
示例代码
下面的例子设置了文档的基础URL到一个引用文件夹。
InternetExplorer使用 base元素来解析指向的链接。
ThisexamplesetsthebaseURLofthedocumenttoareferencefolder.InternetExplorerusesthebaseelementtoresolvethelinkto
Click
hrefproperty.
下面的例子表示,如在文档中指定了合法的base元素,则从文档中获取基础URL;反之,返回null。
ThisexampleretrievesthebaseURLfromthedocumentifavalidbaseelementisspecifiedinthedocument.Otherwise,thefunctionreturnsnull.
functionGetBase()
{
varoBaseColl=document.all.tags('BASE');
return((oBaseColl&&oBaseColl.length)?
oBaseColl[0].href:
null);
}
basefont
设置显示文本时作为默认字体的基础字体值。
Setsabasefontvaluetobeusedasthedefaultfontwhenrenderingtext.
注释
此元素仅可在body元素或 head元素中使用。
BASEFONT应该出现在文档body中的任何显示文本之前。
此元素在InternetExplorer3.0及以上版本的HTML中可用,在InternetExplorer4.0及以上版本的脚本中可用。
此元素不改变内容显示格式。
此元素不需要关闭标签。
ThiselementcanbeusedonlywithintheBODYelementortheHEADelement.BASEFONTshouldappearbeforeanydisplayedtextinthebodyofthedocument.
ThiselementisavailableinHTMLasofInternetExplorer3.0,andinscriptasofInternetExplorer4.0.
Thiselementisnotrendered.
Thiselementdoesnotrequireaclosingtag.
元素示例代码
下面的例子使用BASEFONT元素来设置基础字体大小,而FONT元素用来临时覆盖此设置。
ThisexampleusestheBASEFONTelementtosetthebasefontsize,andtheFONTelementtotemporarilyoverrideit.
--NoBASEFONTsizespecifiedyet.-->
--ResumetheBASEFONTsize.-->
标准信息
该对象已不建议使用,将可能在今后HTML标准中废弃。
ThisobjectisdeprecatedinHTML.
见http:
//www.w3.org/TR/html401/index/elements.html
bdo
允许作者为选定文本片断禁用双向法则。
Allowsauthorstodisablethebidirectionalalgorithmforselectedfragmentsoftext.
注释
BDO元素可用于控制文本块的阅读顺序。
Unicode双向算法会根据所嵌入的字符序列的方向特性将其自动反转。
例如,英语文档的基本方向是由左至右(ltr)。
如果文档内某一段包含了阅读顺序为由右至左(rtl)的语言,你就可以应用双向算法来反转该语言的方向。
双向算法和DIR标签属性通常足以应付嵌入方向的变更。
但是,当你将格式化后的文本交由双向算法处理时,可能会发生错误。
例如,以电子邮件格式化后的包含英语和希伯莱语的文本段将被双向算法不正确地转换。
由于希伯莱语文本的阅读顺序已经以电子邮件格式转换过了,对其应用双向算法则导致再一次对该文本进行转换。
BDO元素将关闭双向算法并控制阅读顺序。
当你使用BDO元素时必需连用DIR标签属性。
此元素在InternetExplorer5.0及以上版本的HTML和脚本中可用。
此元素是内嵌元素。
此元素需要关闭标签。
TheBDOelementcanbeusedtocontrolthereadingorderofablockoftext.
TheUnicodebidirectionalalgorithmautomaticallyreversesembeddedcharactersequencesaccordingtotheirinherentdirection.Forexample,thebasedirectionofanEnglishdocumentisleft-to-right(ltr).Ifportionsofaparagraphwithinthisdocumentcontainalanguagewiththeright-to-left(rtl)readingor
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- HTML元素参考手册 HTML Elements Reference 元素 参考手册