CIS89A - 8. Tables

From WikiEducator
Jump to: navigation, search

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



Keywords

  • 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?


Icon multimedia.gif

Media



More tables


Coding, programming

  • Hour of Code - Write your first computer program Code.org - Learn the basic concepts of Computer Science with drag and drop programming. This is a game-like, self-directed tutorial starring video lectures. Learn repeat-loops, conditionals, and basic algorithms.
  • Hour of Code - Javascript - An introduction to JavaScript by KhanAcademy - Learn the basics of JavaScript programming while creating fun drawings with your code. Video, step-by-step tutorials
  • CodeAcademy - write code and see the results right away.
  • Eloquent JavaScript A Modern Introduction to Programming - an introduction to the JavaScript programming language and programming in general. Originally written and published in digital form, includes interactive examples and a mechanism for playing with all the example code. This version is released under an open license.
  • The 2015 Top Ten Programming Languages - The big five—Java, C, C++, Python, and C#—remain on top. The big mover is R, a statistical computing language that’s handy for analyzing and visualizing big data.



Assignments

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
    • 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. Review 2 others.

  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. Review the work of 2 others and post a note with links to those pages, and a brief description of your observations - anything that you learned from looking at these? Any ideas you have for using in your own work in the future? Post to the Using Tables discussion.

  9. 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 -- update 19nov2016.

  10. 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.

  11. Learning Literacies - 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 Make it - media selections. 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 Learning Literacies - Make it discussion. Review 2 others.

  12. 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. Hour of Code - Javascript - An introduction to JavaScript by Khan Academy - Video, step-by-step tutorials.
  13. 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?



2016.3 2126