鞠躬尽瘁死而后已的人:a--HTML元素

来源:百度文库 编辑:九乡新闻网 时间:2024/04/27 23:55:44

定义

  表示超链接的起始或目的位置。

  Designates the start or destination of a hypertext link.

注释

  元素a需要指定 href 或 name 属性。

  文本和图像都可包含在锚内。作为锚的图像有一个边框,该边框颜色表明该链接是否被访问过。要避免显示此边框,你可设置 img 元素的 BORDER 标签属性为 0 或者省略 BORDER 标签属性。你还可以使用样式表 CSS 来覆盖 a 和 img 元素的默认外观。

  注意  当对象table包含在 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 color indicates whether the link has been visited. To prevent this border from displaying, you can set the img element‘s 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 object 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 requires a closing tag.

示例代码

  
  布啦布啦主页
  
  home.htm
  
  Open in window
  
  link
  
  anchor
  
  
  
  
link