zoukankan      html  css  js  c++  java
  • html标记语言 --超链接

    html标记语言 --超链接            
    
    四、超链接
    
    1. 基本语法
    <a href="" target="打开方式" name="页面锚点名称">链接文字或者图片</a>
    
    2.属性
        2.1 href 链接的地址,可以是一个网页,也可以是一个视频,图片,音乐等
        2.2 target 定义超链接的打开方式
            2.2.1 _blank 在一个新的窗口中打开链接
            2.2.2 _self 在当前窗口打开链接
            2.2.3 _parent 在父窗口中打开页面
            2.2.4 _top 在顶层窗口中打开文件
        2.3 name
            指定页面的锚点名称
                <html>
                    <head>
                        <title>html的文本标记</title>
                        <meta charset="utf-8">
                    </head>
                    <body>
                        <a href="#dibu">到底部去</a>
                        <a name="dingbu"></a></a>
                            <div>
    
                            </div>
                        <a href="#dingbu">到顶部去</a>
                        <a name="dibu"></a>
                    
                    </body>
                </html>
            
        实例:制作超链接图片,就是把超链接<a>包裹在图片<img>之外
                
            <html>
                <head>
                    <title>html的文本标记</title>
                    <meta charset="utf-8">
                </head>
                <body>
                    <a href="http://www.baidu.com" target="_blank">
                        <img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png">
                    </a>
                
                </body>
            </html>
  • 相关阅读:
    CodeForces 706C Hard problem
    CodeForces 706A Beru-taxi
    CodeForces 706B Interesting drink
    CodeForces 706E Working routine
    CodeForces 706D Vasiliy's Multiset
    CodeForces 703B Mishka and trip
    CodeForces 703C Chris and Road
    POJ 1835 宇航员
    HDU 4907 Task schedule
    HDU 4911 Inversion
  • 原文地址:https://www.cnblogs.com/themost/p/8018123.html
Copyright © 2011-2022 走看看