Tutoriales de informática - Abrirllave.com

Abrirllave.com

Ejemplo de texto subíndice y superíndice en HTML

Ejemplo explicado en el apartado "Formato de texto" del tutorial de HTML.

"texto-subindice-y-superindice.html"

<!DOCTYPE html>
<html lang="es-ES">
  <head>
    <meta charset="utf-8">
    <title>Ejemplo de texto subíndice y superíndice</title>
  </head>
  <body>
    <p>Texto normal.<sub>Texto subíndice.</sub></p>
    <p>Texto normal.<sup>Texto superíndice.</sup></p>
  </body>
</html>

Visualización en pantalla

Visualización del archivo texto-subindice-y-superindice.html en Google Chrome, donde se muestra texto subíndice y superíndice.

Practicar el código del ejemplo