answersLogoWhite

0


Best Answer

The attribute the controls the alignment of a table is the "align" attribute. It's possible values are left, right, and center.

This attribute sets the alignment of the table in relation to the rest of the document.

<table align="center">

....

</table>

This attribute was deprecated in the HTML 4.01. That means that you can use it in HTML 4, and expect it to work in the browsers, but there are better ways of achieving your goal. (CSS)

If you're using HTML 4.01 Strict as your doctype, then use of align is obsolete (meaning the browsers no longer have to support it and its use is prohibited.) The same goes for XHTML 1.0 Strict, and the current draft of HTML 5.

Instead, use CSS margins and floats.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y ago

The <table> tag has "align", "bgcolor", "border", "cellpadding", "cellspacing", "frame", "rules", "summary" and "width" attributes. However, none of these <table> attributes are supported in HTML5. Global and event tags are both supported.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What attribute of the table tag controls the table alignment?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How can you align images to the right of a table using css tag?

In your CSS document, use the float attribute with your img tag. For example: img.example { float:right; }


What is an attribute and value to an HTML tag?

A tag can have an additional setting in it. This is an attribute. The attributes can then be given values. For example the body tag has an attribute to set the background colour of the page. The attribute is bgcolor. What colour you specify is the value, in this case it is red: &lt;body bgcolor="Red"&gt;


What are the attributes of table?

The only attribute specific to the TABLE tag allowed by the W3C for a table in HTML5 is the "border" attribute, which takes an integer value specifying whether the table should have a border. The table can also take all of the HTML5 Global Attributes (see link.)In HTML 4 and XHTML 1.0, the table tag has significantly more specific attributes that are allowed. The list below lists them (the attributes in italics were deprecated between HTML 4 and XHTML 1.0 and should not be used in XHTML.)align This attribute can take a value of "left", "right", or "center" and adjusts the table's alignment in relation to the surrounding text.bgcolor This attribute can take a color name, rgb, or hex value, and is used to set the color of the table's background.border This attribute takes an integer value for the number of pixels, which specify the width of the border around the table. (This is the same attribute that survived in HTML5)cellpadding This attribute takes an integer value that specifies the distance between the edge of a table cell, and its content, in pixels.cellspacing This attribute takes an integer that defines the distance, in pixels, between the outer edge of cells.frame This attribute can be assigned the values of "void", "above", "below", "hsides", "lhs", "rhs", "vsides", "box", or "border" and defines the portions of the outside border that should be visible.rule This attribute can be assigned any of the values from "none", "groups", "rows", "cols", or "all". This value specifies which portions of the inside borders of the table will be visible.summary This attribute takes a string value, and is used to summarize the content of the table. It is intended to be used to provided additional information for the visually impaired, and is not visible in a normal browser.width The value of this attribute is either an integer (representing pixels) or a percentage of the width of the parent element, written as a percentage (e.g. "45%") The attribute specifies the width of the table.In XHTML and HTML 4, the TABLE tag can also take all of the Standard Attributes. See the link for details.


Is width a tag in HTML?

This is not a tag. It is an attribute and part of CSS


What style attribute will change the color of the text of a tag?

The attribute color :)

Related questions

What is the name of the additional information placed inside a tag that controls how the tag is used?

The information contained within the opening portion of an HTML tag that controls various attributes of the tag is called the tags "attributes."Attributes follow the format attribute="value" and are added to the tag after it's opening. For instance:In this case, the image tag has two attributes, the src attribute and the alt attribute. The values of those attributes are "a.png" and "A" respectively.


What attribute for the table tag allows you to set the table width relative to window width?

Width


Which HTML tag would be apply the bgcolour attribute to change the background color of single table row?

The tr tag.


How can you align images to the right of a table using css tag?

In your CSS document, use the float attribute with your img tag. For example: img.example { float:right; }


What is an aspnet webform?

All server controls must appear within a &lt;form&gt; tag, and the &lt;form&gt; tag must contain the runat="server" attribute. The runat="server" attribute indicates that the form should be processed on the server. It also indicates that the enclosed controls can be accessed by server scripts: &lt;form runat="server"&gt; &lt;/form&gt;


How do you use border in HTML?

Border can be an attribute in html. For example, in the table tag. This will put a border around the table.As another example, it can be used in the img tag.


What is an attribute and value to an HTML tag?

A tag can have an additional setting in it. This is an attribute. The attributes can then be given values. For example the body tag has an attribute to set the background colour of the page. The attribute is bgcolor. What colour you specify is the value, in this case it is red: &lt;body bgcolor="Red"&gt;


What is an XML attribute?

An XML attribute is a specified property for a tag with a value. For example, the XML tag "person" could have the attribute "name" with a value of "bob."


What are the attributes of table?

The only attribute specific to the TABLE tag allowed by the W3C for a table in HTML5 is the "border" attribute, which takes an integer value specifying whether the table should have a border. The table can also take all of the HTML5 Global Attributes (see link.)In HTML 4 and XHTML 1.0, the table tag has significantly more specific attributes that are allowed. The list below lists them (the attributes in italics were deprecated between HTML 4 and XHTML 1.0 and should not be used in XHTML.)align This attribute can take a value of "left", "right", or "center" and adjusts the table's alignment in relation to the surrounding text.bgcolor This attribute can take a color name, rgb, or hex value, and is used to set the color of the table's background.border This attribute takes an integer value for the number of pixels, which specify the width of the border around the table. (This is the same attribute that survived in HTML5)cellpadding This attribute takes an integer value that specifies the distance between the edge of a table cell, and its content, in pixels.cellspacing This attribute takes an integer that defines the distance, in pixels, between the outer edge of cells.frame This attribute can be assigned the values of "void", "above", "below", "hsides", "lhs", "rhs", "vsides", "box", or "border" and defines the portions of the outside border that should be visible.rule This attribute can be assigned any of the values from "none", "groups", "rows", "cols", or "all". This value specifies which portions of the inside borders of the table will be visible.summary This attribute takes a string value, and is used to summarize the content of the table. It is intended to be used to provided additional information for the visually impaired, and is not visible in a normal browser.width The value of this attribute is either an integer (representing pixels) or a percentage of the width of the parent element, written as a percentage (e.g. "45%") The attribute specifies the width of the table.In XHTML and HTML 4, the TABLE tag can also take all of the Standard Attributes. See the link for details.


Is width a tag in HTML?

This is not a tag. It is an attribute and part of CSS


What style attribute will change the color of the text of a tag?

The attribute color :)


Create space between text and cell borders in a table?

If you are using HTML, use the Cellpadding attribute in TD tag of the cells you want or in the Table Tag if you want to apply it to the full table. You can use style sheets to do it too, or if you are using something like Dreamweaver, there are options in the settings to adjust the cellpadding.