answersLogoWhite

0


Best Answer

This depends on where the table is located.
If it is a direct child of the body-element, the table width will be a percentage of the browser window width.
Otherwise the width will be the percentage of the parent element's width.

Therfore, if a table of width 50% is inside a div of width 600px, the table's width will actually be 300px.

User Avatar

Wiki User

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

AnswerBot

6mo ago

width of its parent container. For example, if the width is set to 50%, the table will take up half of the available width in its parent container.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A percentage value for the width attribute in the table tag specifies the width of the table as a percentage of the?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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.


How can you disable a particular part in the source code of CSS?

Put /* block comments */ around it, for example: style { attribute: value; attribute: value; attribute: value; } style { /* attribute: value; */ attribute: value; attribute: value; } or style { /* attribute: value; attribute: value; */ attribute: value; } or /* style { attribute: value; attribute: value; attribute: value; } */ And while this won't validate, attribute renaming uses a lot less typing (and I use it myself): style { xattribute: value; attribute: value; attribute: value; }


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: <body bgcolor="Red">


What is the correct xhtml for an attribute and its value?

WIDTH="80"


What is the use of name attribute in designing form in HTML and what happens if not used?

The name attribute can be used for referring the value in other context. For example for passing the value in JavaScript.

Related questions

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.


How can you disable a particular part in the source code of CSS?

Put /* block comments */ around it, for example: style { attribute: value; attribute: value; attribute: value; } style { /* attribute: value; */ attribute: value; attribute: value; } or style { /* attribute: value; attribute: value; */ attribute: value; } or /* style { attribute: value; attribute: value; attribute: value; } */ And while this won't validate, attribute renaming uses a lot less typing (and I use it myself): style { xattribute: value; attribute: value; attribute: value; }


What is a table layout?

The Table Layout property helps in setting the layout type for a table in HTML. There are different property values for Table Layout such as Fixed, Auto and Inherit. Example table { table-layout:inherit; } In the above example the value inherit specifies that the value of the table-layout property should be inherited from the parent element.


How does VLOOKUP indicate which fields must be filled in?

VLOOKUP specifies the value it is using to search, the table it is searching and the column within that table to return a value from. Take the following example: =VLOOKUP(A11,C2:H19,3) A11 is the cell that contains the value you are searching for. The table it searches in is from C2 to H19. The value will be looked for in the first column of that table, and the 3 indicates that a value from the 3rd column of the table should be returned.


What is derived attribute?

Attribute whose value may be calculated (derived) from other Attribute


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 is multivalued attribute?

Potential to have more than one value for an attribute


Value set in DBMS?

Each simple attribute of an entity type is associated with a value set (or domain of values), which specifies the set of values that may be assigned to that attribute for each individual entity. If the range of ages allowed for employees is between 16 and 70, we can specify the value set of the Age attribute of EMPLOYEE to be the set of integer numbers between 16 and 70. Similarly, we can specify the value set for the Name attribute to be the set of strings of alphabetic characters separated by blank characters, and so on. Value sets are not displayed in ER diagrams, and are typically specified using the basic data types available in most programming languages, such as integer, string, Boolean, float, enumerated type, sub-range, and so on.


What is the length as a power of 10?

Length is not a value in itself. It is an attribute of objects and, in the context of an object, it may have a value. That value can be expressed as a power of 10.Length is not a value in itself. It is an attribute of objects and, in the context of an object, it may have a value. That value can be expressed as a power of 10.Length is not a value in itself. It is an attribute of objects and, in the context of an object, it may have a value. That value can be expressed as a power of 10.Length is not a value in itself. It is an attribute of objects and, in the context of an object, it may have a value. That value can be expressed as a power of 10.


What is the meaning of value of an attribute?

environment


What are setters and getters?

As the name suggest Setters are to set value of an attribute and Getters are to get value of an attribute. sometime they are also called java beans.


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: <body bgcolor="Red">