reading-notes

read

Links are the defining feature of the web because they allow you to move from one web page to another.

Links are created using the <a> element.

`<a>` element

Linking to Other Sites

we use an absolute URL.

<p>Movie Reviews:
<ul>
<li><a href="http://www.empireonline.com">
Empire</a></li>
<li><a href="http://www.metacritic.com">
Metacritic</a></li>
<li><a href="http://www.rottentomatoes.com">
Rotten Tomatoes</a></li>
<li><a href="http://www.variety.com">
Variety</a></li>
</ul>
</p>

Linking to Other Pages on the Sa me Site

we use a relative URL.

<p>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about-us.html">About</a></li>
<li><a href="movies.html">Movies</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</p>

Relative URLs

Relative URLs can be used when linking to pages within your own website. Rela tive UR Ls

Chapter 15: “Layout” (pp.358-404)

control where each element sits on a page and how to create attractive page layouts.

Key Concepts in Positioning Elements

  1. Building Blocks CSS treats each HTML element as if it is in its own box.

  2. Containing Elements If one block-level element sits inside another block-level element then the outer box is known as the containing.

Controlling the Position of Elements

specify the positioning scheme using the position property in CSS.

  1. Normal flow

  2. Relative Positioning

  3. Ab solute positioning

  4. Fixed Positioning

  5. Floating Elements

Chapter 3 (first part): “Functions, Methods, and Objects” (pp.86-99 ONLY)

Programmers use functions, methods, and objects to organize their code.

FUNCTIONS & METHODS

A function is a piece of code that is called by name.

A method is a piece of code that is called by a name that is associated with an object.

var msg = 'Sign up to receive our newsletter for 10% off!';
function updateMessage() {
var el = document.getElementByld('message'};
el .textContent = msg;
}
updateMessage(};

declaring functions

function declaration is a statement containing a function prototype (function name, return type, the types of parameters and their order).

x

call a function

call a function you are telling the computer to run (or execute) that set of actions.

h

Article: “6 Reasons for Pair Programming”

pair programming is an agile software development technique in which two programmers work together at one workstation.

  1. Greater efficiency

  2. Engaged collaboration

  3. Learning from fellow students

  4. Social skills

  5. Job interview readiness

  6. Work environment readiness

y