reading-notes

HTML Links, JS Functions, and Intro to CSS Layout

Links

Links are the defining feature of the web because they allow you to move from one web page to another — enabling the very idea of browsing or surfing. Writing Links:

Directory Structure On larger websites it’s a good idea to organize your code by placing the pages for each different section of the site into a new folder.

Structure

Building Blocks

CSS treats each HTML element as if it is in its own box. This box will either be a block-level box or an inline box.


Functions, Methods, and Objects

Browsers require very detailed instructions about what we want them to do. Therefore, complex scripts can run to hundreds (even thousands) of lines. Programmers use functions, methods, and objects to organize their code.

WHAT IS A FUNCTION? Functions let you group a series of statements together to perform a specific task. If different parts of a script repeat the same task, you can reuse the function (rather than repeating the same set of st atements). function name() { } and in order to call it : name();


sources: