Object-Oriented Programming adn HTML Tables
Tables
- basic table structure
- <table> is used to create a table
- <tr> is the start of each row
- <td> is representing each cell
- <th> is for the table heading
- attribute colspan allow to merge multiple columns
- attribute rowspan allow to merge multiple rows
- long tables
- <thead> is for the headings
- <tbody> is for the body
- <tfoot> is for the footer
Functions, Methods, and Objects
- creating an object
- ways to create objects:
- literal notation:
var car = {}
- object constructor notation:
var car = new Object();
- updating an object by using
- object.property-name = property value;
- global object: