A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-tr-charoff-attribute/ below:

HTML | <tr> charoff Attribute

HTML | <tr> charoff Attribute

Last Updated : 31 Oct, 2019

The

HTML tr charoff Attribute

is used to sets the number of characters that aligned the characters specified by the char Attribute. This attribute can only be used in the char attribute and align attribute is specified in the tr Element.

Syntax:
<tr charoff="number">
Attribute Values:
  1. Positive values: indicate the alignment to the right of the characters.
  2. Negative values: indicate the alignment to the left of the characters.
Example: html
<!DOCTYPE html>
<html>

<head>
    <title>tr charoff </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 tr charoff Attribute</h2>
        <table>
            <thead>
                <!-- tr tag starts here -->
                <tr align="char" charoff=".">
                    <th>Name</th>
                    <th>User Id</th>
                </tr>
                <!-- tr tag end here -->
            </thead>
            <tbody>
                <tr>
                    <td>Shashank</td>
                    <td>@shashankla</td>
                </tr>
                <tr>
                    <td>GeeksforGeeks</td>
                    <td>@geeks</td>
                </tr>
            </tbody>
        </table>
    </center>
</body>

</html>
Output: Supported Browsers:

The browsers supported by

HTML tr charoff Attribute

are listed below:



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