Skip to content
Related Articles

Related Articles

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

HTML | <thead> char Attribute

Improve Article
Save Article
Like Article
  • Last Updated : 14 Oct, 2019

The HTML thead char Attribute is used to specify the alignment to the character of content in a thead 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:

<thead char="character">

Attribute Values:

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

Example:




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

Output :

Supported Browsers: The <thead> char Attribute is not supported by any major browsers.


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!