Last Updated : 12 Jul, 2025
The HTML <td> nowrap Attribute is used to specify that the content present inside the cell should not wrap. It contains the Boolean value.
Note: It is not supported by HTML5.
Syntax:<td nowrap>
Example: This example illustrates the use of <td> nowrap with an HTML document.
html
<!DOCTYPE html>
<html>
<head>
<title>HTML nowrap Attribute</title>
<style>
body {
text-align: center;
}
h1 {
color: green;
}
table,
th,
td {
border: 1px solid black;
border-collapse: collapse;
padding: 6px;
margin: auto;
}
</style>
</head>
<body>
<h1>GeeksforGeeks</h1>
<h2>HTML <td> nowrap Attribute</h2>
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td nowrap>Ajay</td>
<!-- This cell will take up space on two rows -->
<td rowspan="2">24</td>
</tr>
<tr>
<td>Priya</td>
</tr>
</table>
<p>The nowrap attribute is not supported in HTML5. Use CSS instead.</p>
</body>
</html>
Output:
Supported Browsers:RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4