CSE 3901 - Midterm 2
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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Hkane. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.