欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

按钮和隐藏控件

程序员文章站 2022-05-05 19:54:44
...

引入<buttton>元素的目的是让用户更好地控制按钮的显示方式,

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>TODO write content</div>
        <form action="http://www.example.com/add.php">
            <button><img src="images/add.gif" alt="add" width="10" height="10" />Add</button> 
            <input type="hidden" name="bookmark" value="lyrics" />
        </form>
    </body>
</html>