欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          html中怎么設(shè)置超鏈接

          html中設(shè)置超鏈接的方法:首先在html的body部分中,添加“<a>超鏈接文本</a>”語句來設(shè)置鏈接節(jié)點(diǎn);然后在a標(biāo)簽中使用href屬性規(guī)定鏈接指向的頁面的URL即可;具體語法“<a href="url">超鏈接文本</a>”。

          html中怎么設(shè)置超鏈接

          本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

          在html中,可以使用a標(biāo)簽來設(shè)置超鏈接。

          <a> 標(biāo)簽定義超鏈接,用于從一張頁面鏈接到另一張頁面。

          <a> 元素最重要的屬性是 href 屬性,它指示鏈接的目標(biāo)。

          示例:

          <!DOCTYPE html>  <head> 	<meta charset="UTF-8"> </head> <html>  <body> 	<a href="https://www.php.cn/">超鏈接文本</a> </table> </body>  </html>

          效果圖:

          html中怎么設(shè)置超鏈接

          相關(guān)屬性:

          屬性 描述
          charset char_encoding HTML5 不支持。規(guī)定目標(biāo) URL 的字符編碼。
          coords coordinates HTML5 不支持。規(guī)定鏈接的坐標(biāo)。
          download filename 指定下載鏈接
          href URL 規(guī)定鏈接的目標(biāo) URL。
          hreflang language_code 規(guī)定目標(biāo) URL 的基準(zhǔn)語言。僅在 href 屬性存在時使用。
          media media_query 規(guī)定目標(biāo) URL 的媒介類型。默認(rèn)值:all。僅在 href 屬性存在時使用。
          name section_name HTML5 不支持。規(guī)定錨的名稱。
          rel alternate
          author
          bookmark
          help
          license
          next
          nofollow
          noreferrer
          prefetch
          prev
          search
          tag
          規(guī)定當(dāng)前文檔與目標(biāo) URL 之間的關(guān)系。僅在 href 屬性存在時使用。
          rev text HTML5 不支持。規(guī)定目標(biāo) URL 與當(dāng)前文檔之間的關(guān)系。
          shape default
          rect
          circle
          poly
          HTML5 不支持。規(guī)定鏈接的形狀。
          target _blank
          _parent
          _self
          _top
          framename

          規(guī)定在何處打開目標(biāo) URL。僅在 href 屬性存在時使用。

          • _blank:新窗口打開。
          • _parent:在父窗口中打開鏈接。
          • _self:默認(rèn),當(dāng)前頁面跳轉(zhuǎn)。
          • _top:在當(dāng)前窗體打開鏈接,并替換當(dāng)前的整個窗體(框架頁)。
          type MIME_type 規(guī)定目標(biāo) URL 的 MIME 類型。僅在 href 屬性存在時使用。
          注:MIME = Multipurpose Internet Mail Extensions。

          推薦教程:《html視頻教程》

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號