El elemento <button>
El elemento <button> se usa para confirmar una acción por el usuario.
El elemento requiere un comando de apertura y uno de cierre. El elemento es un elemento
inline. Ejemplo:
<html>
<head>
<title>El elemento button</title>
</head>
<body>
<button>Pínchame</button>
</body>
</html>
El elemento
<button>
soporta tanto Texto como Imágenes para la renderización. Ejemplo:
<html>
<head>
<title>El elemento button</title>
</head>
<body>
<button>Pínchame<img
src="images/ok.gif" align=absmiddle
alt="OK"></button>
</body>
</html>
Puede asignarle un estilo al elemento
<button>.
Ejemplo:
<html>
<head>
<title> El elemento button</title>
</head>
<body>
<button
style="width:200px; height:80px; background-image: url(images/buttonback.gif);
background-repeat: no-repeat; background-color: transparent; border-top-style: none;
border-right-style: none; border-left-style: none; border-bottom-style: none;">
Pínchame
<img
src="images/ok48.gif"
align=absmiddle alt="OK"></button>
</body>
</html>
|