Elemento img


El elemento img incluye una imagen en el documento actual en la posición de la definición del elemento. El elemento img no tiene contenido; normalmente se reemplaza en línea por la imagen designada por el atributo src.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
  <head>
    <title>Elemento img</title>
  </head>
  <body>
    <p>
      Párrafo con una imagen
      <img src="j0335100.gif" width="85"
     height="85" alt="logo" />
    </p>
  </body>
</html>

Los atributos src y alt son obligatorios.