reading-notes

https://motaser.github.io/reading-notes/

View on GitHub

Text in html

When creating a web page, you add tags(known as markup) to the contents of thepage. These tags provide extra meaningand allow browsers to show users the appropriate structure for the page.

HTML elements are used to describe the structure of the page (e.g. headings, subheadings, paragraphs). XX They also provide semantic information (e.g. where emphasis should be placed, the definition of any acronyms used, when given text is a quotation).

Introducing CSS

CSS allows you to create rules that specify how the content ofan element should appear. For example, you can specify thatthe background of the page is cream, all paragraphs shouldappear in gray using the Arial typeface, or that all level oneheadings should be in a blue, italic, Times typeface. CSS works by associating rules with HTML elements. These rules govern how the content of specified elements should be displayed. A CSS rule contains two parts: a selector and a declaration.

CSS treats each HTML e XX lement as if it appears inside its own box and uses rules to indicate how that element should look.

Basic JavaScript Instructions

Decisions and Loops

Looking at a flowchart (for all but the most basic scripts), the code can take more than one path, which means the browser runs different code in different situations. In this chapter, you will learn how to create and control the flow of data in your scripts to handle different situations. EVALUATIONS You can analyze values in your scripts to determine whether or note they match expected results. DECISIONS Using the results of evaluations, you can decide which path your script should go down. LOOPS There are also many occasions where you will want to perform the same set of steps repeatedly.