Skip to Main Content

LibGuides Manual

Working With Tables

Some information is best presented in table format and HTML based tables can be used in LibGuides. However, using the included tables tool in the Rich Text / HTML editor adds many unwanted codes to your table -- see below:

Simple table created with the include table tool
   
   
   

Here is the resulting code that the tool creates (with unwanted coding highlighted in red:

<table class="table table-bordered" style="border: 1px solid rgb(221, 221, 221);">
    <caption>Simple table created with the include table tool</caption>
    <tbody>
        <tr>
            <td class="ck_border" style="border: 1px solid rgb(221, 221, 221);">&nbsp;</td>
            <td class="ck_border" style="border: 1px solid rgb(221, 221, 221);">&nbsp;</td>
        </tr>
        <tr>
            <td class="ck_border" style="border: 1px solid rgb(221, 221, 221);">&nbsp;</td>
            <td class="ck_border" style="border: 1px solid rgb(221, 221, 221);">&nbsp;</td>
        </tr>
        <tr>
            <td class="ck_border" style="border: 1px solid rgb(221, 221, 221);">&nbsp;</td>
            <td class="ck_border" style="border: 1px solid rgb(221, 221, 221);">&nbsp;</td>
        </tr>
    </tbody>
</table>

Creating Tables for Library of Congress LibGuides

At the Library, we use a modified version of the Bootstrap stylesheet. So, for tables at the Library of Congress in LibGuides, we recommend that you start with some cleanly styled code using one of these examples below.

Table with Headers on Top with Column Widths

Indicate settings for column width using percentages as shown in the coding below:

<div class="table-responsive">
<table class="table table-bordered">
<colgroup>
    <col style="width: 10%;" />
    <col style="width: 55%;" />
    <col style="width: 20%;" />
    <col style="width: 15%;" />
</colgroup>
    <thead>

        <tr>
            <th>TM #</th>
            <th>Title</th>
            <th>Author</th>
            <th>Date</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>1-205</td>
            <td>Air Navigation</td>
            <td>War Department</td>
            <td>Nov. 1940</td>
        </tr>
       ...
    </tbody>
</table>
</div>
TM # Title Author Date
1-205 Air Navigation War Department Nov. 1940
1-206 Celestial Air Navigation War Department Mar. 1941
1-208 Air Navigation Tables War Department June 1942
1-215 Attitude Instrument Flying War Department Sep. 1964
1-219 Basic Photography War Department July 1941
1-220 Aerial Photography War Department July 1941
1-220 Aerial Photography War Department Nov. 1942
1-225 Navigation for Army Aviation War Department Apr. 1965
1-230 Weather Manual for Pilots War Department May 1940
1-231 Elementary Weather for Air Crew Trainees War Department Apr. 1942

Next Table

Table with Headers on the Side

<div class="table-responsive">
<table class="table table-bordered">
<colgroup>
    <col style="width: 25%;" />
    <col style="width: 75%;" />
</colgroup>

    <tbody>
        <tr>
            <th>June 17, 1909</th>
            <td>United States Senator Norris Brown of Nebraska proposed the Sixteenth Amendment to the U.S. Constitution.</td>
        </tr>
        ... 
        <tr>
            <th>March 8, 1920</th>
            <td>The Supreme Court says stock dividends are &ldquo;not taxable under the 1916 income tax law&rdquo;.</td>
        </tr>
    </tbody>
</table>
</div>
June 17, 1909 United States Senator Norris Brown of Nebraska proposed the Sixteenth Amendment to the U.S. Constitution.
1909-1913 State legislatures across the U.S. begin to ratify the amendment.
February 3, 1913 Wyoming becomes the last of the three-fourths states needed to ratify the Sixteenth Amendment, which officially enables Congress to legally act on a permanent income tax.
September 23,1915 Stockholders file a brief in the U.S. Supreme Court, which argues the Sixteenth Amendment covers “many taxes other than on income.
January 24, 1916 The Supreme Court declares the income tax is constitutional by the Sixteenth Amendment.
March 8, 1920 The Supreme Court says stock dividends are “not taxable under the 1916 income tax law”.

Striped table

<div class="table-responsive">
<table class="table table-bordered table-striped">

    <caption style="caption-side: bottom;">These represent some key types of information sources. Definitions modified from the <a href="https://dictionary.archivists.org/" target="_blank">Dictionary of Archives Terminology <i aria-hidden="true" class="fa fa-external-link-alt"></i><span class="screen-readers-only">External</span></a> from the Society of American Archivists and the Merriam Webster online dictionary.</caption>

<colgroup>
    <col style="width: 25%;" />
    <col style="width: 75%;" />
</colgroup>

    <tbody>
        <tr>
            <th>Government&nbsp;Documents</th>
            <td>Resources created by national, state and local governments to document the activities of government or provide information about the locality and its people.</td>
        </tr>
        <tr>
            <th>Journals</th>
            <td>Collections of articles that provide the most up-to-date research from academia and industries. The content can include literature reviews, case or research studies, or information on specific processes.</td>
        </tr>
       ...
    </tbody>
</table>
</div> 

 

These represent some key types of information sources. Definitions modified from the Dictionary of Archives Terminology External from the Society of American Archivists and the Merriam Webster online dictionary.
Government Documents Resources created by national, state and local governments to document the activities of government or provide information about the locality and its people.
Journals Collections of articles that provide the most up-to-date research from academia and industries. The content can include literature reviews, case or research studies, or information on specific processes.
Manuscripts Unpublished documents, including handwritten documents and an author's draft of a book, article, or other work submitted for publication.
Maps Graphic representations of features of the Earth or another celestial body. Maps are typically drawn to scale using a projection technique and may include political boundaries and geological features, among other elements.

 

Moving Images Visual works that have the appearance of movement, including motion pictures, video, and flip books.
Newspapers Newspapers can cover current topics, historical events, and/or local information. Newspaper collections can be good places for exploring issues and events at the local, regional, national, or global level. They are published and distributed daily, weekly, or at some other regular and usually short interval.
Oral Histories Interviews that record an individual's personal recollections of the past and historical events. The audio or video recordings, transcripts, and other materials that capture and are associated with such an interview.
Photographs and Prints

A photograph is still picture formed on a light-sensitive surface using an optical system, such as a camera, and fixed by a photochemical process. A print is a copy of an original work of art made by either creating a template out of wood, metal, stone or zinc, mesh cloth or another medium and placing ink, paint or another liquid on the template and transferring the image to another surface such as paper, fabric or plastic. Prints can also be made using digital media including laser or other forms of digital technology.

  A drawing that is often symbolic and usually intended as humor, caricature, or satire and comment on public and usually political matters.
Reference Material Reference can provide background information on your topic. Typically, reference material comes in the form of encyclopedias, dictionaries, handbooks, yearbooks, atlases, and more.
Sheet Music A document that includes musical notation and lyrics to a song.
Sound Recordings Resources on which sound has been recorded for distribution or reproduction. Includes performances or spoken work presentations provided on a recordable medium including paper, wire, wax, tape or electronic format.

Examples of Tables in Published Guides