2020-06-06 HTML重点 12课

1、标签

  • 常用属性
    • href =(hyper refence) 超链接 用于连接网页
    • target
    • download
    • rel-noopener
  • a 的href的取值
    • 网址
      http://google.com
    • 路径
      /a/b/c
    • 伪协议
    • js代码
    • mailto:邮箱
    • tel:手机号
    • id
      herf="#xxx"
 查看
↑一个什么都不做的A标签
  • a 的target的取值(比想象中的要复杂)
    • 内置名字
      target="_top"
      target="_self" (新页面在当前页面打开 )
      target="_parent"
      target="_blank" (在空白页面打开)

2、