<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.digitalmedievalist.org/wiki/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Table - Revision history</title>
		<link>http://www.digitalmedievalist.org/wiki/index.php?title=Table&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5-2squeeze1</generator>
		<lastBuildDate>Sun, 19 May 2013 06:52:08 GMT</lastBuildDate>
		<item>
			<title>DominiqueS:&amp;#32;Created page with &quot;Category:How_do_I_encode... Category:Primer  The '''[http://www.wikipedia.org/wiki/Table_(information) table]''' is a structural unit made up of rows, columns, or…&quot;</title>
			<link>http://www.digitalmedievalist.org/wiki/index.php?title=Table&amp;diff=101&amp;oldid=prev</link>
			<guid>http://www.digitalmedievalist.org/wiki/index.php?title=Table&amp;diff=101&amp;oldid=prev</guid>
			<description>&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php/Category:How_do_I_encode...&quot; title=&quot;Category:How do I encode...&quot;&gt;Category:How_do_I_encode...&lt;/a&gt; &lt;a href=&quot;/wiki/index.php/Category:Primer&quot; title=&quot;Category:Primer&quot;&gt;Category:Primer&lt;/a&gt;  The &amp;#39;&amp;#39;&amp;#39;[http://www.wikipedia.org/wiki/Table_(information) table]&amp;#39;&amp;#39;&amp;#39; is a structural unit made up of &lt;a href=&quot;/wiki/index.php?title=Rows&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Rows (page does not exist)&quot;&gt;rows&lt;/a&gt;, &lt;a href=&quot;/wiki/index.php?title=Columns&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Columns (page does not exist)&quot;&gt;columns&lt;/a&gt;, or…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:How_do_I_encode...]]&lt;br /&gt;
[[Category:Primer]]&lt;br /&gt;
&lt;br /&gt;
The '''[http://www.wikipedia.org/wiki/Table_(information) table]''' is a structural unit made up of [[rows]], [[columns]], or [[cells]] that is used to display relationships graphically among disparate pieces of information. Most (probably all) markup languages have a relevant element, although the precise definition and syntax for the element can vary. A good discussion of issues involved, can be found in the [http://www.tei-c.org/P4X/FT.html#FTTAB TEI P4 Guidelines, §§ 22.1 and following].&lt;br /&gt;
&lt;br /&gt;
'''Tables''' are closely related to '''[[Lists]]''' which share many features.&lt;br /&gt;
&lt;br /&gt;
==Source documents==&lt;br /&gt;
&lt;br /&gt;
===Print===&lt;br /&gt;
&lt;br /&gt;
In print, '''tables''' commonly begin on a new line and end with a line boundary. They may or may not have border lines between [[rows]], [[columns]], or [[cells]]. Individual [[rows]], [[columns]], or [[cells]] may or may not have contrasting colored backgrounds. Tables commonly have a '''header row''' and/or '''header column''' which indicates the nature of the information displayed.&lt;br /&gt;
&lt;br /&gt;
Individual [[cells]] in a table may consist of a single line of text, or less often but still frequently, paragraph(s) or line(s) of verse or code.&lt;br /&gt;
&lt;br /&gt;
Tables may appear as part of paragraphs, or as discrete structural elements.&lt;br /&gt;
&lt;br /&gt;
===Electronic===&lt;br /&gt;
&lt;br /&gt;
In electronic documents, tables commonly have two additional functions: they are the core organisational structure of relational databases and spreadsheets, and they are commonly (though incorrectly) used to achieve layout effects such as columns in webpage design. This latter usage is strongly discouraged by most structural markup [[DTD]]s.&lt;br /&gt;
&lt;br /&gt;
===Manuscripts===&lt;br /&gt;
&lt;br /&gt;
'''Tables''' are less commonly found in manuscripts, though they do occur. [[Lists]] are more common.&lt;br /&gt;
&lt;br /&gt;
==Structural encoding==&lt;br /&gt;
&lt;br /&gt;
Most structural markup languages contain an element for '''table''' (e.g. XHTML &amp;lt;code&amp;gt;&amp;amp;lt;table&amp;amp;gt;&amp;lt;/code&amp;gt;, TEI &amp;lt;code&amp;gt;&amp;amp;lt;table&amp;amp;gt;&amp;lt;/code&amp;gt;) and components.&lt;br /&gt;
&lt;br /&gt;
===(X)HTML===&lt;br /&gt;
&lt;br /&gt;
In (X)HTML, tables are encoded using the following elements:&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;table&amp;amp;gt;: table&lt;br /&gt;
 &amp;amp;lt;tr&amp;amp;gt;: table row&lt;br /&gt;
 &amp;amp;lt;td&amp;amp;gt;: table data (cell)&lt;br /&gt;
&lt;br /&gt;
Cells that extend across several rows and/or columns are indicated using the &amp;lt;code&amp;gt;colspan&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;rowspan&amp;lt;/code&amp;gt; [[attributes]] of the cell (&amp;lt;code&amp;gt;&amp;amp;lt;td&amp;amp;gt;&amp;lt;/code&amp;gt;) element, e.g.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;td colspan=&amp;quot;2&amp;quot;&amp;amp;gt; : indicates that the cell is two columns high.&lt;br /&gt;
 &amp;amp;lt;td rowspan=&amp;quot;2&amp;quot;&amp;amp;gt; : indicates that the cell is two rows high.&lt;br /&gt;
&lt;br /&gt;
Most visual commercial browsers render paragraphs by default as left-justified blocks without borders. The appearance of this and most other elements can also be controlled by external (e.g. [[CSS]] stylesheets. See [[Stylesheets]], below).&lt;br /&gt;
&lt;br /&gt;
===TEI===&lt;br /&gt;
&lt;br /&gt;
In [[TEI]] XML (P4), paragraphs most commonly are encoded using the following structural elements:&lt;br /&gt;
&lt;br /&gt;
 [[Tei:table | &amp;amp;lt;table&amp;amp;gt;]]: table&lt;br /&gt;
 [[Tei:row | &amp;amp;lt;row&amp;amp;gt;]]: table row&lt;br /&gt;
 [[Tei:cell | &amp;amp;lt;cell&amp;amp;gt;]]: table cell&lt;br /&gt;
&lt;br /&gt;
Cells that extend across several rows and/or columns are indicated using the &amp;lt;code&amp;gt;cols&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;rows&amp;lt;/code&amp;gt; [[attributes]] of the cell element, e.g.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;cell cols=&amp;quot;2&amp;quot;&amp;amp;gt; : indicates that the cell is two columns high.&lt;br /&gt;
 &amp;amp;lt;cell rows=&amp;quot;2&amp;quot;&amp;amp;gt; : indicates that the cell is two rows high.&lt;br /&gt;
&lt;br /&gt;
Most commercial browsers do not have a default stylesheet for this or any other TEI element (although they may render it as the XHTML equivalent). Its display characteristics, therefore, must be controlled by stylesheets, either directly (i.e. using a formatting style language such as [[CSS]] or [[XSL-FO]] or indirectly, after conversion to [[XHTML]] for display.&lt;br /&gt;
&lt;br /&gt;
==Style sheets==&lt;br /&gt;
&lt;br /&gt;
===CSS===&lt;br /&gt;
&lt;br /&gt;
Several CSS [[properties]] control the appearance of tables elements; the most important include&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;display&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;border-top&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;border-bottom&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;border-left&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;border-right&amp;lt;/code&amp;gt;, etc.)&lt;br /&gt;
* &amp;lt;code&amp;gt;background-color&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;code&amp;gt;display&amp;lt;/code&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;display&amp;lt;/code&amp;gt; is used to control whether the element is displayed as a block, in-line, etc. There are two relevant values for table &amp;lt;code&amp;gt;display&amp;lt;/code&amp;gt; are&lt;br /&gt;
&lt;br /&gt;
 table : displays table as block (beginning on new line and ending with carriage return)&lt;br /&gt;
 inline-table : allows table to appear within the line of a paragraph or equivalent.&lt;br /&gt;
&lt;br /&gt;
Most tables are blocks. All current browsers use &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; for the default value.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt; property is short hand for a number of related display properties (e.g. line size, color, position, and style). It is used when a uniform border is to enclose the element as a whole, e.g.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;Place a thin, solid border in the same color as the text around each cell&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
 td {&lt;br /&gt;
  border: thin solid auto;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If borders are required only on certain sides of an element, the properties &amp;lt;code&amp;gt;border-top&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;border-bottom&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;border-left&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;border-right&amp;lt;/code&amp;gt; are used, e.g.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;Place a thin, solid border between columns&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
 td {&lt;br /&gt;
  border-left: thin solid auto;&lt;br /&gt;
  border-right: thin solid auto;&lt;br /&gt;
  border-collapse: collapse;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;code&amp;gt;border-collapse:collapse&amp;lt;/code&amp;gt; ensures that only one line appears between columns; if the property is not set, each cell will have its own left and right border (meaning that each column would be separated by two lines rather than one).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt; properties are not [[Inheritance | inherited]]: setting the &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt; for a &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; element will not place borders around individual cells.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;code&amp;gt;background-color&amp;lt;/code&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;background-color&amp;lt;/code&amp;gt; sets the background color of the element to which it is assigned, e.g.&lt;br /&gt;
&lt;br /&gt;
* '''Set the background color of cells with the &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; attribute &amp;lt;code&amp;gt;odd_column&amp;lt;/code&amp;gt; to red''':&lt;br /&gt;
&lt;br /&gt;
 td.odd_column {&lt;br /&gt;
  background-color: red&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
* '''Set the background color of rows with the &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; attribute &amp;lt;code&amp;gt;even_row&amp;lt;/code&amp;gt; to blue''':&lt;br /&gt;
&lt;br /&gt;
 tr.even_row {&lt;br /&gt;
  background-color: red&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
* '''Set the background of the entire table to red''':&lt;br /&gt;
&lt;br /&gt;
 table {&lt;br /&gt;
  background-color: red&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===XSL-FO===&lt;br /&gt;
(Unknown)&lt;br /&gt;
&lt;br /&gt;
===LaTeX===&lt;br /&gt;
&lt;br /&gt;
(Unknown)&lt;/div&gt;</description>
			<pubDate>Sun, 19 Feb 2012 14:45:10 GMT</pubDate>			<dc:creator>DominiqueS</dc:creator>			<comments>http://www.digitalmedievalist.org/wiki/index.php/Talk:Table</comments>		</item>
	</channel>
</rss>