溫馨提示×

html怎么設置按鈕超鏈接

清風
3255
2021-03-24 19:15:26
欄目: 編程語言

html實現(xiàn)按鈕超鏈接的方法:1.創(chuàng)建html文件;2.在html文件中添加html架構代碼;3.在html架構中的body標簽里面使用a標簽以及button標簽設置按鈕超鏈接;4.通過瀏覽器方式查看設置效果。

html怎么設置按鈕超鏈接

html實現(xiàn)按鈕超鏈接的方法:

1.首先創(chuàng)建一個html文件。

2.將html架構代碼添加到html文件中。

<!DOCTYPE html>

<html>

    <head>

        <title>按鈕超鏈接示例</title>

    </head>

    <body>

    </body>

</html>

3.在html架構中的body標簽里面使用a標簽以及button標簽設置一個按鈕超鏈接。

<button type="button"><a href="http://www.kemok4.com/" style="text-decoration: none;">按鈕超鏈接</button>

4.最后可通過瀏覽器方式閱讀html文件查看設置效果。

完整代碼示例:

<!DOCTYPE html>

<html>

    <head>

        <title>按鈕超鏈接示例</title>

    </head>

    <body>

<button type="button"><a href="http://www.kemok4.com/" style="text-decoration: none;">按鈕超鏈接</button>

    </body>

</html>


0