answersLogoWhite

0

What are the attributes of table?

Updated: 10/27/2022
User Avatar

Wiki User

12y ago

Best Answer

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.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

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

What is the part of compiler that keeps track of names and their attributes?

table


Which attributes is used with TR tag?

The TR (Table Row) tag is part of the <table> tag family. It has several attributes. You format the attributes like this: <tr attribute="whatever">. Here are the attributes for the <tr> tag for HTML 4 and earlier: * align (right, left, center, justify, char) * bgcolor (#xxxxxx, colorname) * char (character) * charoff (number) * valign (top, middle, bottom, baseline) NOTE: These attributes are not supported in HTML 5.


Which data structure in a compiler is responsible for managing information about variables and their attributes?

It is up to the designer of the compiler to decide... it can be something like this: struct Type; struct Block; typedef struct Variable { const char *name; struct Type *type; struct Block *block; /* refers to the block that is the scope of the variable */ int attributes; /* volatile, const, static etc */ } Variable;


All types of keys in database?

* Alternate key - An alternate key is any candidate key which is not selected to be the primary key * Candidate key - A candidate key is a field or combination of fields that can act as a primary key field for that table to uniquely identify each record in that table. * Compound key - compound key (also called a composite key or concatenated key) is a key that consists of 2 or more attributes. * Primary key - a primary key is a value that can be used to identify a unique row in a table. Attributes are associated with it. Examples of primary keys are Social Security numbers (associated to a specific person) or ISBNs (associated to a specific book). In the relational model of data, a primary key is a candidate key chosen as the main method of uniquely identifying a tuple in a relation. * Superkey - A superkey is defined in the relational model as a set of attributes of a relation variable (relvar) for which it holds that in all relations assigned to that variable there are no two distinct tuples (rows) that have the same values for the attributes in this set. Equivalently a superkey can also be defined as a set of attributes of a relvar upon which all attributes of the relvar are functionally dependent. * Foreign key - a foreign key (FK) is a field or group of fields in a database record that points to a key field or group of fields forming a key of another database record in some (usually different) table. Usually a foreign key in one table refers to the primary key (PK) of another table. This way references can be made to link information together and it is an essential part of database normalization


What are the attributes of a firefighter?

There can be various attributes of an element. Firefighter could be a custom tag with various attributes.

Related questions

Is the process of creating table designs by assigning specific fields or attributes to each table in a database?

Normalization is the process of creating table designs by assigning specific fields or attributes to each table in a database.


What is cardinality in dbms?

Cardinality is the number of attributes in the table.


What is logical view of database?

The logical constists of the name of the table, the attributes it contains, their types, the constraints on the attributes, if any.


What is the part of compiler that keeps track of names and their attributes?

table


What is the part of the compiler that keeps track of names and their attributes?

table


What is tuples in sql?

Tuple is a collection of one or more attributes or rows present in a table.


Which attributes is used with TR tag?

The TR (Table Row) tag is part of the <table> tag family. It has several attributes. You format the attributes like this: <tr attribute="whatever">. Here are the attributes for the <tr> tag for HTML 4 and earlier: * align (right, left, center, justify, char) * bgcolor (#xxxxxx, colorname) * char (character) * charoff (number) * valign (top, middle, bottom, baseline) NOTE: These attributes are not supported in HTML 5.


Which data structure in a compiler is used to manage memory location of variables and their attributes?

Symbol table.


What does Record mean in database?

Record holds data about one object with its attributes specified in table.


What Is the value that can be used to identify a unique row in a table and attributes are also associated with it?

The Primary Key.


Can you sort a table without a primary key?

Yes. You can sort on any attribute or combination of attributes in a table (in SQL using the "order by" clause). Of course the sort is only as good as the "uniqueness" of the attribute you sort on, hence a combination of attributes may be helpful. A primary key is, by definition, unique across all rows in the table.


Define attribute in dbms?

In DBMS a table contains one or more columns there columns are the attribute in DBMS FOR EXAMPLE---say you have a table named "employee information"which have the following columns ID,NAME,ADDRESS THEN id ,name address are the attributes of employee..................