English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Directory

HTML td nowrap attribute

The nowrap attribute is a boolean attribute; the nowrap attribute specifies that the content in the table cell does not wrap.

 HTML <td> balise

Online Example

Table cells containing the nowrap attribute:

<table border="1>
  <tr>
    <th>Explanation</th>
    <th>Explanation</th>
  </tr>
  <tr>
    <td nowrap>Never increase the number of entities required to explain anything beyond the necessary range </td>
    <td>Never increase the number of entities required to explain anything beyond the necessary range</td>
  </tr>
</table>
Test to see </›

Compatibilité du navigateur

IEFirefoxOperaChromeSafari

Tous les navigateurs populaires prennent en charge l'attribut nowrap.

Définition et utilisation

HTML5 L'attribut nowrap de <td> n'est pas pris en charge. Utilisez CSS à la place.

Dans HTML 4.01 Dans HTML, l'attribut nowrap de <td> est obsolète.

L'attribut nowrap est un attribut booléen.

L'attribut nowrap spécifie que le contenu de la cellule de tableau ne doit pas retourner à la ligne.

Commentaires de compatibilité

Dans HTML 4.01 dans laquelle, l'attribut nowrap de <td> est obsolète. Utilisez CSS à la place.

Syntaxe CSS : <td style="white-space: nowrap">

CSS Exemple : les cellules de tableau sans retour à la ligne

Vous trouverez plus d'informations surwhite-L'attribut space détails.

Les différences entre HTML et XHTML

Dans XHTML, l'abréviation des attributs est interdite, l'attribut nowrap doit être défini comme <td nowrap="nowrap">.

Syntaxe

<td nowrap>
 HTML <td> balise