The HTML Attribute reference.

"align" - html Attribute (deprecated)

  • Specifies the horizontal alignment of its element with respect to the surrounding context.
  • You should use styles (CSS) instead.

Value(s): depend on which element
Used in the element(s):
Elements Description
applet (deprecated) This element is used to embed Java applets.Possible attribute, align, values for this element:
Attribute value description
bottom Means that the bottom of the applet should be vertically aligned with the current baseline. This is the default value.
middle Means that the center of the applet should be vertically aligned with the current baseline.
top Means that the top of the applet should be vertically aligned with the top of the current text line.
left Cause the applet to float to the current left margin.
right Cause the applet to float to the current right margin.
caption The CAPTION element's text should describe the nature of the table. The CAPTION element is only permitted immediately after the 'table' start tag. Attribute, align, usage:
  • Specifies the position of the caption with respect to the table.
Possible attribute, align, values for this element:
Attribute value description
top The caption is at the top of the table. This is the default value.
bottom The caption is at the bottom of the table
left The caption is at the left of the table.
right The caption is at the right of the table.
col This element defines attributes common to a table column.Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
colgroup COLGROUP groups a set of 'col' elements. It allows you to group several semantically related columns together. Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
div This element offer a generic mechanism for adding structure to documents. The <DIV> tag is used to divide a document up into artificial sections such as chapters, sections, appendix and so on. Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
h1 The elements H1 through H6 are used to define header levels within a document. H1 element is the most significant header and H6 is the least significant.Attribute, align, usage:
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
h2 The elements H1 through H6 are used to define header levels within a document. H1 element is the most significant header and H6 is the least significant.Attribute, align, usage:
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
h3 The elements H1 through H6 are used to define header levels within a document. H1 element is the most significant header and H6 is the least significant.Attribute, align, usage:
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
h4 The elements H1 through H6 are used to define header levels within a document. H1 element is the most significant header and H6 is the least significant.Attribute, align, usage:
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
h5 The elements H1 through H6 are used to define header levels within a document. H1 element is the most significant header and H6 is the least significant.Attribute, align, usage:
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
h6 The elements H1 through H6 are used to define header levels within a document. H1 element is the most significant header and H6 is the least significant.Attribute, align, usage:
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
hr Draws a horizontal line.Possible attribute, align, values for this element:
Attribute value description
center the rule is centered.
left The rule is rendered flush left.
right The rule is rendered flush right.
iframe This element defines an inline frame for the inclusion of other HTML documents.Possible attribute, align, values for this element:
Attribute value description
bottom Means that the bottom of the image should be vertically aligned with the current baseline. This is the default value.
middle Means that the center of the image should be vertically aligned with the current baseline.
top Means that the top of the image should be vertically aligned with the top of the current text line.
left Cause the image to float to the current left margin.
right Cause the image to float to the current right margin.
img This element specifies an inline image to be drawn in the place.Possible attribute, align, values for this element:
Attribute value description
bottom Means that the bottom of the image should be vertically aligned with the current baseline. This is the default value.
middle Means that the center of the image should be vertically aligned with the current baseline.
top Means that the top of the image should be vertically aligned with the top of the current text line.
left Cause the image to float to the current left margin.
right Cause the image to float to the current right margin.
input This element defines a form control for the user to enter input.Attribute, align, usage:
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
legend This element is used to provide the caption text for grouped form controls and text contained in a fieldset.Attribute, align, usage:
  • Specifies the position of the legend with respect to the fieldset.
Possible attribute, align, values for this element:
Attribute value description
left Text lines are rendered flush left.
center Text lines are centered.
right Text lines are rendered flush right.
justify Text lines are justified to both margins.
object This element is used to include objects such as images, audio, videos, Java applets, and Flash animations. Possible attribute, align, values for this element:
Attribute value description
bottom Means that the bottom of the object should be vertically aligned with the current baseline. This is the default value.
middle Means that the center of the object should be vertically aligned with the current baseline.
top Means that the top of the object should be vertically aligned with the top of the current text line.
left Cause the object to float to the current left margin.
right Cause the object to float to the current right margin.
p This element defines a paragraph of text. Possible attribute, align, values for this element:
Attribute value description
top The legend is at the top of the fieldset. This is the default value.
bottom The legend is at the bottom of the fieldset.
left The legend is at the left side of the fieldset.
right The legend is at the right side of the fieldset.
table The HTML table model allows you to arrange text, images, links, forms, form fields, other tables, etc. into rows and columns of cells.Attribute, align, usage:
  • specifies the position of the table with respect to the document.
Possible attribute, align, values for this element:
Attribute value description
left The table is to the left of the document.
center The table is to the center of the document.
right The table is to the right of the document.
tbody This element is used to define the body section in a table.Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
td This element defines a data cell in a table. Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
tfoot This element is used to define the foot section in a table.Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
th This element defines a header cell in a table.Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
thead This element is used to define the head section in a table.Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
tr This element defines a table row.Attribute, align, usage:
  • Specifies the alignment of data and the justification of text in a cell.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.