Latest web development tutorials

HTML th attribut nowrap

HTML th tag Manuel de référence HTML <th> tag

Exemples

cellule d'en-tête avec un attribut nowrap:

<table border="1">
<tr>
<th>Month</th>
<th nowrap>My Savings for a new car</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>

Essayez »

support du navigateur

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Définition et utilisation

HTML5 ne supporte pas le <th> nowrap attribut. Utilisez CSS à la place.

Dans HTML 4.01, <th> L'attribut nowrap est obsolète .

nowrap attribut est un attribut booléen.

attribut nowrap précise le contenu en-tête de la cellule ne pas envelopper.


notes de compatibilité

Dans HTML 4.01, <th> L'attribut nowrap est obsolète. Utilisez CSS à la place.

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

CSS Exemple: table - tête cellulaire ne revient pas

Dans notre tutoriel CSS vous pouvez trouver plus d' informations sur les espaces blancs attributs détails.


Différences entre HTML et XHTML

En XHTML, interdire l'attribut minimisation, attribut nowrap doit être défini comme <th nowrap = "nowrap">.


grammaire

<th nowrap>


HTML th tag Manuel de référence HTML <th> tag