HTML <th> charoff Attribute Last Updated : 08 Feb, 2022 Comments Improve Suggest changes Like Article Like Report The HTML th 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 th Element. Note: The th charoff attribute is not supported by HTML 5. Syntax: <th charoff="number"> Attribute Values: number: It contains the numeric value which specify the alignment of the element.Positive values: indicate the alignment to the right of the characters.Negative values: indicate the alignment to the left of the characters. Example: Below HTML code illustrates the use of charoff attribute in <th>. HTML <!DOCTYPE html> <html> <head> <title>HTML th charoff attribute </title> <style> body { text-align: center; } h1,h2 { color: green; } th { color: blue; } table, tbody, td { border: 1px solid black; border-collapse: collapse; } </style> </head> <body> <center> <h1>GeeksforGeeks</h1> <h2> HTML th charoff Attribute</h2> <table> <thead> <!-- tr tag starts here --> <tr align="char" charoff="."> <th align="char" charoff="." > Country_name </th> <th>Total Medals</th> </tr> <thead> <tbody> <tr> <td>China</td> <td>34</td> </tr> <tr> <td>India</td> <td>45</td> </tr> </tbody> </table> </center> </body> </html> Output: Supported Browsers: This attribute is depreciated from HTML5 and not in use. Comment More infoAdvertise with us Next Article HTML <th> charoff Attribute H hritikbhatnagar2182 Follow Improve Article Tags : HTML HTML-Attributes Similar Reads HTML | <tr> charoff Attribute 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: number: 1 min read HTML <td> charoff Attribute The HTML <td> charoff attribute specifies the offset for aligning text around a specified character within a table cell. It is used with the char attribute and is now considered obsolete in modern HTML. This attribute can only be used in the char attribute and the align attribute is specified 2 min read HTML | <thead> charoff Attribute The HTML <thead> 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 thead Element. Syntax: <thead charoff="number"> Attribute 2 min read HTML <th> char Attribute The HTML <th> char attribute is used to specify the alignment to the character of content in a table header cell. It only contains the char align attribute. Its default value is a decimal point for page language. Note: It is not supported by HTML5. Syntax: <th char="character"> Attribute 1 min read HTML | <td> char Attribute The HTML <td> char Attribute is used to specify the alignment to the character of content in a table cell. This attribute only contains char align attribute. Its default value is a decimal point for page language. It is not supported by HTML 5. Syntax: <td char="character"> Attribute Val 1 min read Like