CIS89A - 8. Tables

From WikiEducator
Jump to: navigation, search
Lazy Caterer's Sequence (Cuts)

Rows and columns - Tables

Tables can be used to display numerical information - like a spread sheet. But tables can also be used to make web page content look great by providing a neat way to place content on the page.

Learning outcomes

  • understand the concepts and uses of tables in web pages
  • create a basic table structure
  • format tables within pages
  • format content within table cells


  • table, row, column, cell, padding, borders, margins, spacing, width, height, alignment, horizontal, vertical, caption

Reading guide

  • What are the main components of a table in HTML?
  • How can tables be used to format content? Why is this necessary?
  • What are some content formatting options to increase readability?


Assignment file name and required elements

  • cis89tables1 - table, tr, th, td, border, width, height, margin, padding, float, text-align, background-color, class, colspan, rowspan, thead, tfoot, tbody, colgroup, style * rows columns, headings, borders, padding, span rows, span columns, position text within table cells, position images in table cells
    • NOTE: These are HTML Table properties and attributes
    • Coding Challenges - some of these can be implemented as CSS styling

  1. Review the Keywords and Study questions at the top of this page. These will help you look for important ideas in the rest of assignments for this module.

  2. Read Chapter 11. Using Tables in the textbook.

  3. Tables - There are many different uses for tables, in addition to usual spreadsheet format for neatly displaying numbers. Find 2 examples of interesting uses of the table element and post links and a sentence about why you selected each to the Examples of Tables discussion. Some tables may not be obvious, so you need to check the source code to find the actual table element.

  4. Using Tables - In a new Thimble file, use the assignment elements and tags to create and format tables. Add these tables. You can include other tables to show other table formatting, if you wish.
    * a Tic-Tac-Toe "game" display
    * a table to demonstrate cell padding, spacing and alignment
    * a table for formatting page content with text in one cell and an image in another cell beside it.
  5. Use all the elements and tags within your page.
    ** NOTE: These are HTML Table properties and attributes
    ** Coding Challenges - some of these can be implemented as CSS styling. Some browsers do not support some of the equivalent CSS properties.
    Publish your HTML file.
  6. Submit the web address of your assignment page file to the Using Tables assignment.
  7. Post a link to your assignment page file and any comments or questions about the assignment to the Using Tables discussion.

  8. Personal information - As a online technology user, you are always at risk of being the target of someone who is trying to take your personal information. Detecting online scams and 'phishing' by employing recognized tools and techniques is important. To gauge your personal risk, and find tips for lowering it, take the Identity Theft Quiz: A Quiz for Consumers.

  9. Web Literacy - In the Connecting description, review the skills. What skills you don't have yet or need to work on? Look it up. In the WebLiteracy - Connecting discussion, post a link to a resource that improved your understanding and skills in these areas.

  10. Success Skills - Make it - Creativity and Innovation. Is it possible to learn to be creative or innovative? Many authors think so and provide some suggestions for getting those creative juices flowing. Review 2-3 articles from Success skills - Make it. Pick one article you would recommend from the selection list. Find another article online that would be appropriate to add to the selection list. Post a link and a brief summary of the reasons for each of your selections to the Success Skills - Make it discussion.

  11. Programming - the functionality of a web site can be extended by adding some programming, usually in Javascript.
    * If you are new to programming, write your first computer program. Hour of Code - Learn the basic concepts of Computer Science with drag and drop programming. This is a game-like, self-directed tutorial. Learn repeat-loops, conditionals, and basic algorithms.
    * If you have some programming experience, learn the basics of JavaScript programming while creating fun drawings with your code. An introduction to JavaScript by Khan Academy - Video, step-by-step tutorials.
  12. In the Programming discussion, write a brief description (2-3 sentences) of your Hour of Code experience. Which tutorial did you do? Do you have any prior programming experience? Would you recommend this activity to others?

Icon multimedia.gif


How to Style Tables with CSS - YouTube
video talks about styling tables and is 4 min and 58 seconds long. Besides this video, creator has a lot of other videos on his channel. also class or id for elements
<p class="...
Top 25 Simple CSS3 & HTML Table Templates And Examples 2018 - Colorlib
"o help assess online data better is “table” — the table element can be used to display raw data in a selection of different appearances; tables. HTML tables are not necessarily somethin...
Using Tables in Page Design
Tables are useful for laying out text and images on in Web page. Before continuing with instructions on how to do this, let us first consider why there is a need to manage layout. browser's &#3...
HTML Tables Tutorial - YouTube
video 9:37 - how to code HTML tables and add basic styling with CSS - tabular data, grocery list example with multiple items and values. when to use them
<p class="diigo-tags&q...
Are CSS Tables Better Than HTML Tables? - Vanseo Design
now there is a way to create tables with css alone.What’s the difference between html tables and css tables? Should we use css tables? If so how?" do not use html tables for layouts
Styling tables - Learn web development | MDN
Styling an HTML table isn't the most glamourous job in the world, but sometimes we have to do it. This article provides a guide to making HTML tables look good. Let's start by looking at a...
HTML table tag
A simple HTML table, containing two columns and two rows The <table> tag defines an HTML table. An HTML table consists of the <table> element and one or more <tr>, <th>, and...