Open In App

HTML | <th> nowrap Attribute

Last Updated : 26 Jun, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <th> nowrap Attribute is used to specify that the content present inside the header cell should not wrap. It contains the Boolean value. It is not supported by HTML 5.

Syntax:

<th nowrap>

Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML th nowrap Attribute
    </title>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
  
    <h2>HTML th nowrap Attribute</h2>
  
    <table border="1">
        <tr>
            <th>NAME</th>
            <th nowrap>
              GeeksforGeeks is a computer science portal
          </th>
        </tr>
  
        <tr>
            <td>BITTU</td>
            <td>CSE</td>
        </tr>
  
        <tr>
            <td>RAKESH</td>
            <td>EC</td>
        </tr>
    </table>
</body>
  
</html>


Output:

Supported Browsers: The browser supported by HTML <th> nowrap attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads