reading-notes

Notes for Codefellows Code 401 301 201 and 102

From the Duckett HTML book:

Introduction (pp.2-11)

Read Summary pages in blue; then find the black pages and study them; then study the code and the examples; focus on understanding the concepts;

HTML Chapter 1: “Structure” (pp.12-39)

HTML uses elements to describe the structure of pages; tags (elements) act like containers; they tell us sth about what lies between opening and end tag; <p>text</p>;

tags <p attributes Name(lang) and Value(="en-us")>; attributes tell us more about the element; they have a name and a value;

HTML Chapter 8: “Extra Markup” (p.176-199)

HTML Chapter 17: “HTML5 Layout” (pp.428-451)

using new element tags vs just generic div - basic structure html (head, body(header(nav),main(section (article(hgroup)),(article(hgroup)),aside(section)),footer));

HTML Chapter 18: “Process & Design” (pp.452-475)

From the Duckett JS book:

Introduction

JS Chapter 1: “The ABC of Programming” (pp.11-52)

A what is a script? How do I create one? for a webpage?

B how do computers fit in with the world around them ?

computers create models of the world using data; objects can have their own:

webbrowsers create models of what they display - of the web page that are shown and of the window it is shown in; the document object represents an html page; using the document object, you can access and change what content users see on the page and respond to how they interact with it; that document object has properties, methods, events; also creates a new object for each element on the page; see the DOM document object model;

image of Duckett DOM and hierarchy;

browser receives html code - creates a model of the page and stores it - it has a hierarchy (document - html - head - title+link,….) - elements, text, attributes… - it uses a rendering engine to show that page on the screen(CSS);

C How do I write a script for a webpage

layered - html - css - javascript; progressive enhancements; image of Duckett JS example document.write; <script src="js/add-content.js"></scriptEND>; does NOT show in source code - but the link does to js file <script>document.write('<h3>Welcome!</h3>')</script>;

image of Duckett document.Write