Object-Oriented Programming, HTML Tables

Domain Modeling

HTML Book

Chapter 6:: “Tables”

Basic Table Structure

  1. <table> used to create a table. The contents of the table are written out row by row.
  2. <tr> indicate the start of each row using the opening <tr> tag, At the end of the row you use a closing </tr>.
  3. ` <td>` represente Each cell of a table.
  4. ` <th>used just like the <td>` element but its purpose is to represent the heading for either a column or a row.
  5. The colspan attribute can be used on a <th> or <td> element and indicates how many columns that cell should run across.
  6. The rowspan attribute can be used on a <th> or <td> element to indicate how many rows a cell should span down the table.
  7. The headings of the table should sit inside the <thead> element.
  8. The body should sit inside the <tbody> element.
  9. The footer belongs inside the <tfoot> element.

JavaScript Book

Chapter 3:: “Functions, Methods, and Objects”

LITERAL NOTATION OBJECT CONSTRUCTOR NOTATION
A colon separates the key/value pairs.There is a comma between each key/value pair. The function can be used to create multiple objects. The this keyword is used instead of the object name.

WHAT ARE BUILT-IN OBJECTS?

  1. BROWSER OBJECT MODEL The Browser Object Model contains objects that represent the current browser window or tab. It contains objects that model things like browser history and the device’s screen.

  2. DOCUMENT OBJECT MODEL The Document Object Model uses objects to create a representation of the current page. It creates a new object for each element (and each individual section of text) within the page.

  3. GLOBAL JAVASCRIPT OBJECTS The global JavaScript objects represent things that the JavaScript language needs to create a model of. For example, there is an object that deals only with dates and times.

DATA TYPES REVISITED

  1. String
  2. Boolean
  3. Number
  4. null
  5. object
  6. undefined

GLOBAL OBJECTS: MATH OBJECT

GLOBAL OBJECTS: DATE OBJECT (AND TIME)