answersLogoWhite

0

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

13y ago

What else can I help you with?

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;


What is meant by Attributes?

Attributes refer to the characteristics or properties that define an object, entity, or concept within a specific context. In various fields, such as programming, data analysis, and marketing, attributes can represent data points or features that provide essential information about the subject. For example, in a database, an attribute might be a column in a table that stores specific information about each record, such as a person's name or age. Overall, attributes help to categorize and describe entities, making them easier to analyze and understand.


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

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.


Attributes in relational database?

In a relational database, attributes are the characteristics or properties that describe entities in a table. Attributes are represented by columns in a table and hold specific pieces of data related to the entities. Each attribute has a data type that defines the kind of data it can store (e.g., integer, string, date).


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.


What is key attribute and non key attributes?

A key attribute is an attribute that uniquely identifies a record in a database table. Non-key attributes are attributes that are not used to uniquely identify records, but provide additional information about the data.


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.


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

Symbol table.