Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 2.46 KB

File metadata and controls

49 lines (29 loc) · 2.46 KB

From the Duckett HTML book:

CHAPTER 3: LISTS

  • OEDERED LISTS: < ol >: The ordered list is created with the < ol > element. And each item in the list is placed between < li > and </ li >.

  • UNORDERED LISTS: < ul >: The unordered list is created with the < ul > element. And each item in the list is placed between < li > and </ li >.

  • DEFINITION LISTS: < dl >:  The definition list is created with the < dl > element, and it consists of < dt >, and < dd >, < dt > contains the definition term, and < dd > contains the definition.

CHAPTER 13: BOXES

  •  BOX DIMENSIONS: Width, height You can use the height and width properties to control the dimensions of your boxes.

  • BORDERED, MARGIN & PADDING: There are three properties for every box, border, margin, and padding. You can control the bordered width by using bordered-width. The value of this property can be giving in pixels or by using thin, medium, and thin. And You can control the bordered style by using bordered-style. The padding property allows you to specify how much space should appear between the content of an element and its border.  The margin property controls the gap between boxes. Its value is commonly given in pixels, although you may also use percentages or ems.

CHANGE INLINE/BLOCK: The display property allows you to turn an inline element, the values of this property are inline, and inline-block.

From the Duckett JS book:

CHAPTER 2: Basic JavaScript Instructions

Arrays are special types of variables that store more than one piece of related information. 

CHAPTER 4: Decisions and Loops

  • IF STATEMENTS: The if statement checks a condition, if the condition is true, the code will run. if (first condition){Do this code if the first condition is true} else if (second condition){do this code if the second condition is true} else{do this codifies all conditions are false}.

  • SWITCH STATEMENT:  This expression is evaluated once. And it allow you to compare a value against possible outcomes.

  • LOOP: Loops check a condition, it repeats until the condition returns false. The types of loops:

  • For: if you need to run code a specific number of times.

  • While : if you don't know how many times the code should run. A for loop uses a counter as a condition. The condition consists of three statements, initialization [create a variable set it to 0. (var i = 0;)], condition [ the loop should continue to run until the counter reaches a specific number (i< x;)], and update [ it adds one to the counter (i++)].