HTML nowrap Attribute
Last Updated :
29 Jan, 2024
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>
<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:
- Google Chrome 1
- Edge 12
- Firefox 1
- Apple Safari 12.1
- Opera 1
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...