A right-aligned HTML table:
![]()
The align attribute is supported in all major browsers.
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 not supported in HTML 4.01 Strict / XHTML 1.0 Strict DTD.
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
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|