Request Method Header syntax - ANS-verb path (part of url) version
HTTP Request Structure - ANS-Method header, header fields, a blank line, and body
(sometimes)
HTTP Response Structure - ANS-Status, header fields, blank line, and body
status line syntax - ANS-http-version, status -code, text
put and delete request methods should be - ANS-idempotent
HTTP is - ANS-stateless
Cookies - ANS-set in the response header field and then will be used in subsequent requests
Passing arguments - ANS-each key-value argument separated by &
each key separated out by =
replace space with +
HTML - ANS--connects documents via hyperlinks
-describe content of document, not style
page validation - ANS-design by contract
Kinds of HTML elements - ANS-document structure elements: root of tree is always <html> and
has two children: <head> and <body>
head elements: info about document
body elements: block (content that stands alone/starts a new line of text) and in-line (part of
surrounding context/does not interrupt the flow)
required head elements - ANS-<title> and <meta>
usually <meta charset = "utf-8" />
lists in html - ANS-Ordered <ol>
unordered <ul>,
Item in list <li>
, generic container for flow content (block) - ANS-<div>
common inline elements - ANS-<a>, <em>, <img>, <b>
Generic container within flow content for inline HTML - ANS-<span>
tables - ANS-<tr> is row, <td> is cell of data, and <th> is header cell (for row or column)
<a href = ""> some text </a> - ANS-hyper link, a click results in a HTTP GET request
forms - ANS-can do GET or POST, user input: <input type ="text, etc."/>
when form button is submitted - ANS-a POST request is sent with arguments from form inputs
an HTML document - ANS-is a tree
html elements are _ on trees - ANS-nodes and have attributes
html text are _ on trees - ANS-leaves
CSS - ANS-list of rules
rule - ANS-a location & the style to use there
Margins - ANS-the white space surrounding the content of a page at the top, bottom, left and
right sides, defining where a line of text begins and ends
shortand property: marhin - ANS-margin: T R B L
margin: TB RL
margin: T RL B
whenever a selector conflict happens, the style applies to the _ declared style - ANS-last
a child inherits many properties from parent by default - ANS-ex: body{} styles will get inherited
to its children
typically text properties are inherited, _ styles are not - ANS-box-related
Box Model of CSS - ANS-- CSS considers every HTML5 element to be enclosed in a "box"
- The boxes will not be visible, unless you make them visible
- Can clearly visualize content, padding, border and margin
preventing margin collapse - ANS-if the parent has a border/padding it would stop it