Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | tbody char Attribute

  • Last Updated : 20 Oct, 2020

The HTML tbody char Attribute is used to specify the alignment to the character of content in a tbody element. This attribute can only be used if the align attribute is set to “char”. Its default value is a decimal point for page language. It is not supported by HTML 5.

Syntax:

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<tbody char="character">

Attribute Values:

  • character: It is used to specify the character to the align the content.

Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>html tbody char Attribute </title>
    <style>
        body {
            text-align: center;
        }
          
        h1 {
            color: green;
        }
          
        th {
            color: blue;
        }
          
        table,
        tbody,
        td {
            border: 1px solid black;
            border-collapse: collapse;
        }
    </style>
</head>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h2> HTML tbody char Attribute</h2>
        <table>
            <thead>
                <tr>
                    <th>Name</th>
                    <th>User Id</th>
                </tr>
            </thead>
  
            <!-- tbody tag starts from here -->
            <tbody align="char" char="." charoff="2">
                <tr>
                    <td>Shashank</td>
                    <td>@shashankla</td>
                </tr>
                <tr>
                    <td>GeeksforGeeks</td>
                    <td>@geeks</td>
                </tr>
            </tbody>
            <!-- tbody tag ends here -->
  
        </table>
    </center>
</body>
  
</html>

Output:

Supported Browsers: The browsers supported by HTML tbody char Attribute are listed below:

  • Google Chrome Not supported
  • Internet Explorer Not supported
  • Firefox Not supported
  • Apple Safari Not supported
  • Opera Not supported



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!