1、HTML元素参考手册 HTML Elements ReferenceHTML元素参考手册 HTML Elements Referencea表示超链接的起始或目的位置。Designates the start or destination of a hypertext link.注释元素a需要指定 href 或 name 属性。文本和图像都可包含在锚内。作为锚的图像有一个边框,该边框颜色表明该链接是否被访问过。要避免显示此边框,你可设置img 元素的 BORDER 标签属性为 0 或者省略 BORDER 标签属性。你还可以使用样式表 CSS 来覆盖 a 和img 元素的默认外观。注意 当对象ta
2、ble包含在 a 标签内时可能工作不正常。如果对元素 A 应用 time2 行为的话,那么该元素仅当在时间线上激活时才会变成链接。此元素在Internet Explorer 3.0及以上版本 的 HTML 和脚本中可用。此元素是内嵌元素。此元素需要关闭标签。The a element requires the href or the name property to be specified.Both text and images can be included within an anchor. An image that is an anchor has a border whose c
3、olor indicates whether the link has been visited. To prevent this border from displaying, you can set the img elements BORDER attribute to 0 or omit the BORDER attribute. You can also use Cascading Style Sheets (CSS) attributes to override the default appearance of a and img elements.Note A table ob
4、ject does not function properly when contained within an a tag.If the time2 behavior is applied to the A element, it will become a link only when it is active on the timeline.This element is available in HTML and script as of Internet Explorer 3.0.This element is an inline element.This element requi
5、res a closing tag.示例代码A HREF= 站长学院主页home.htmOpen in windowlink anchorlinkacronym表示取首字母的缩写词。Indicates an acronym abbreviation.注释此元素在 Internet Explorer 4.0 及以上版本的 HTML 和脚本中可用。此元素是内嵌元素。此元素需要关闭标签。The acronym element is available in HTML and script as of Internet Explorer 4.0.This element is an inline el
6、ement.This element requires a closing tag.示例代码MSN另见address, cite, dfn, em, iaddress表示特定信息,如地址、签名、作者、文档信息。Specifies information, such as address, signature, and authorship, of the current document.注释Internet Explorer 将 address 元素的内容以斜体显示。此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer
7、4.0 及以上版本的脚本中可用。此元素是一个块元素。此元素需要关闭标签。Internet Explorer displays the content of an address element in italics.This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.This element is a block element.This element requires a closing tag.示例代码This text will
8、be italic.此文本将以斜体显示。另见acronym, cite, dfn, em, iapplet在页面上放置可执行内容。Places executable content on the page.注释要使用由 applet 元素指定的可执行内容,用户的计算机上必须安装 Microsoft 虚拟机 (Microsoft virtual machine)。此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的的脚本中可用。此元素是一个内嵌元素。此元素需要关闭标签。To use executable
9、 content specified by the applet element, a users computer must have the Microsoft virtual machine (Microsoft VM) installed. This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.This element is an inline element.This element requires a closing tag.
10、标准信息该对象已不建议使用,将可能在今后HTML标准中废弃。This object is deprecated in HTML. 见 http:/www.w3.org/TR/html401/index/elements.htmlarea定义一个客户端图像映射中一个超级链接区域的形状、坐标和关联 URL。Defines the shape, coordinates, and associated URL of one hyperlink region within a client-side image map.注释在同一个map 元素中可包含任意多个area 元素。COORDS 值的格式取决于
11、 SHAPE 标签属性的值。此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。此元素不会改变显示格式。此元素需要关闭标签。Any number of area elements can be contained within the same map element.The format of the COORDS value depends on the value of the SHAPE attribute.This element is available in HTML as
12、of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.This element is not rendered.This element does not require a closing tag.示例代码下面的例子提供了一个太阳系的图像映射代码。该代码在map 元素中使用area 元素及其 COORDS 值和 SHAPE 标签属性创建了由图象映射指向单个行星图像的链接。要返回到太阳系图像映射,用户可以单击后退按钮。This example provides the code for an image map
13、of the solar system. It creates links from the image map to individual images of the planets using the area element with the map element, COORDS value, and SHAPE attribute. The user clicks the sun or any planet to link to an individual image. To return to the solar system image map, the user clicks
14、the Back button.演示示例b指定文本应以粗体显示。Specifies that the text should be rendered in bold.注释此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。此元素是内嵌元素。此元素需要关闭标签。The b element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.This elemen
15、t is an inline element.This element requires a closing tag.示例代码This text displays boldface. 此文本以粗体显示。 另见strongbase指定一个显式 URL 用于解析对于外部源的链接和引用,如图像和样式表。Specifies an explicit URL used to resolve links and references to external sources such as images and style sheets.元素说明当使用时,base 元素必须出现在文档的 head 内,在任何用
16、于引用外部资源的元素之前。此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。此元素不改变内容的显示格式。此元素不需要关闭标签。When used, the base element must appear within the head of the document, before any elements that refer to an external source.This element is available in HTML as of Internet Explorer
17、 3.0, and in script as of Internet Explorer 4.0.This element is not rendered.This element does not require a closing tag.示例代码下面的例子设置了文档的基础 URL 到一个引用文件夹。Internet Explorer 使用base 元素来解析指向 的链接。This example sets the base URL of the document to a reference folder. Internet Explorer uses the base element t
18、o resolve the link to BASE HREF=Click here to learn about the href property.下面的例子表示,如在文档中指定了合法的 base 元素,则从文档中获取基础 URL;反之,返回 null。This example retrieves the base URL from the document if a valid base element is specified in the document. Otherwise, the function returns null. function GetBase() var oB
19、aseColl = document.all.tags(BASE); return ( (oBaseColl & oBaseColl.length) ? oBaseColl0.href : null );basefont设置显示文本时作为默认字体的基础字体值。Sets a base font value to be used as the default font when rendering text.注释此元素仅可在 body 元素或head 元素中使用。BASEFONT 应该出现在文档 body 中的任何显示文本之前。此元素在 Internet Explorer 3.0 及以上版本的 H
20、TML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。此元素不改变内容显示格式。此元素不需要关闭标签。This element can be used only within the BODY element or the HEAD element. BASEFONT should appear before any displayed text in the body of the document.This element is available in HTML as of Internet Explorer 3.0, and in script as
21、of Internet Explorer 4.0.This element is not rendered.This element does not require a closing tag.元素示例代码下面的例子使用 BASEFONT 元素来设置基础字体大小,而 FONT 元素用来临时覆盖此设置。This example uses the BASEFONT element to set the base font size, and the FONT element to temporarily override it. Set the BASEFONT size. Temporaril
22、y override the BASEFONT size.标准信息该对象已不建议使用,将可能在今后HTML标准中废弃。This object is deprecated in HTML. 见 http:/www.w3.org/TR/html401/index/elements.htmlbdo允许作者为选定文本片断禁用双向法则。Allows authors to disable the bidirectional algorithm for selected fragments of text.注释BDO 元素可用于控制文本块的阅读顺序。Unicode 双向算法会根据所嵌入的字符序列的方向特性将
23、其自动反转。例如,英语文档的基本方向是由左至右(ltr)。如果文档内某一段包含了阅读顺序为由右至左(rtl)的语言,你就可以应用双向算法来反转该语言的方向。双向算法和 DIR 标签属性通常足以应付嵌入方向的变更。但是,当你将格式化后的文本交由双向算法处理时,可能会发生错误。例如,以电子邮件格式化后的包含英语和希伯莱语的文本段将被双向算法不正确地转换。由于希伯莱语文本的阅读顺序已经以电子邮件格式转换过了,对其应用双向算法则导致再一次对该文本进行转换。BDO 元素将关闭双向算法并控制阅读顺序。当你使用 BDO 元素时必需连用 DIR 标签属性。此元素在 Internet Explorer 5.0
24、及以上版本的 HTML 和脚本中可用。此元素是内嵌元素。此元素需要关闭标签。The BDO element can be used to control the reading order of a block of text.The Unicode bidirectional algorithm automatically reverses embedded character sequences according to their inherent direction. For example, the base direction of an English document is left-to-right (ltr). If portions of a paragraph within this document contain a language with the right-to-left (rtl) reading or
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2