HTML | <th> atributo abbr

El atributo HTML <th> abbr se usa para especificar la versión más corta del contenido en la celda del encabezado . No describe ningún efecto visual, pero los lectores de pantalla lo utilizan.

Nota : este atributo no es compatible con HTML5.

Sintaxis:

<th abbr="text">

Valores de atributos:

  • texto: contiene la breve descripción del contenido de la celda del encabezado.

Ejemplo:

<!DOCTYPE html>
<html>
  
<head>
    <title>HTML th abbr Attribute</title>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
  
    <h2>HTML th abbr Attribute</h2>
  
    <table border="1">
        <tr>
            <th abbr="name of student">NAME</th>
            <th abbr="age of student">AGE</th>
            <th abbr="branch name">BRANCH</th>
        </tr>
  
        <tr>
            <td>BITTU</td>
            <td>22</td>
            <td>CSE</td>
        </tr>
  
        <tr>
            <td>RAKESH</td>
            <td>25</td>
            <td>EC</td>
        </tr>
    </table>
</body>
  
</html>

Producción:

Navegadores compatibles: los navegadores compatibles con el atributo HTML <th> abbr se enumeran a continuación:

  • Google Chrome
  • explorador de Internet
  • Firefox
  • Safari
  • Ópera

Publicación traducida automáticamente

Artículo escrito por jit_t y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *