CIS89A - 8. Tables

From WikiEducator
Jump to: navigation, search
Mathematical bridge,  Cambridge

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?


Assignments

Coding project title 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 Reading guide 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 coding project, 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 project.
    ** 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 coding project to the Using Tables assignment.
  7. Post a link to your coding project 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 - PARTICIPATE - In the Web Literacy framework description, review the skills in the PARTICIPATE group. What skills you don't have yet or need to work on? Look it up. In the Web Literacy - PARTICIPATE 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?

  13. Tech's Moral Void (audio podcast) - Lawyers and doctors have a code of ethics. Teachers have them. Even journalists have them. So why not the tech sector, the people who create and design our very modes of communication? Coders and designers make products that allow to us communicate with each other, across cities and nations and borders. As these giants grow at breakneck speed, and the chaos of their unfettered impact becomes more obvious, the call is coming for a reckoning. Contributor Tina Pittaway explores whether the time has come for tech to reckon with its moral void. Listen to the podcast. What are two key points that stand out to you? How does this impact you as a global citizen and internet user? Hoe does it impact you as a web developer? Is this new information to you? Post your reply to the Tech ethics podcast discussion. Review the post of 3 others. Post at least one question to another post that will help your understanding of the issues.

  14. Group Project groups discussions - Review the posts in your group discussion. Are you working as a group? Contribute to the tasks. Suggest other tasks and activities that would be appropriate for online group work.


Icon multimedia.gif

Media


Tables

https://www.youtube.com/watch?v=II4WmRvzZTA&embeds_referring_euri=https%3A%2F%2Fdeanza.instructure.com%2F
Tables can be a useful way to organize certain types of content visually. But tables add an extra layer of complexity for students using a screen reader device which means it’s imperative your ta...
HTML tables - Learn web development | MDN
display tables of information on the web such as your school lesson plan, the timetable at your local swimming pool, or statistics about your favorite dinosaurs or football team. This module takes...
HTML table advanced features and accessibility - Learn web development | MDN
more advanced features of HTML tables — such as captions/summaries and grouping your rows into table head, body and footer sections — as well as looking at the accessibility of tables for visua...
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, simple coding example see how each tag rel...


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.
Getting started | micro:bit
"The BBC micro:bit is an award-winning programmable device that allows students to get hands-on with coding and digital making. Use it to inspire your students to recognise the power of techno...
BBC micro:bit v2 : ID 4781 : $17.95 : Adafruit Industries, Unique & fun DIY electronics and kits
"BBC micro:bit v2Product ID: 4781$17.95There are multiple versions of this item. Please select one from the options below: Single BBC micro:bit v2 $17.95 Single micro:bit v2 Go Bundle -...
Micro:bit Educational Foundation | micro:bit
Lesson resources for teachersPlanning and teaching with the micro:bitPrimary ages 7-11Complete, editable computing units of work and resources with cross-curricular links for art, science, geograph...
Buy the micro:bit | micro:bit
Lesson resources for teachersPlanning and teaching with the micro:bitPrimary ages 7-11Complete, editable computing units of work and resources with cross-curricular links for art, science, geograph...