A right-aligned HTML table:
![]()
The align attribute is supported in all major browsers.
The <table> align attribute is not supported in HTML5. Use CSS instead.
The align attribute of <table> is deprecated in HTML 4.01.
The align attribute specifies the alignment of a table according to surrounding text.
Normally, an HTML table will have a break before and after it. The align attribute allows other HTML elements to wrap around the table.
The align attribute of <table> is deprecated in HTML 4.01. Use CSS instead.
CSS syntax: <table style="float:right">
In our CSS tutorial you can find more details about the float property.
| Value | Description |
|---|---|
| left | Left-aligns the table |
| right | Right-aligns the table |
| center | Center-aligns the table |
HTML <table> tag
Your message has been sent to W3Schools.