Module 12 Flashcards
WWW == internet?
no
the world wide web is an application (software) that operates over the internet (hardware)
- internet provides infrastructure
- www uses the infrastructure to run an application on which users connect and exchange data
other applications use the internet as well, e.g. email
WWW
an application on the internet that combines many protocols to allow for communication and transfer of data between machines
the web is composed of __________ that are logically linked
documents
uniform resource identifier
alphanumeric string of characters used to uniquely identify a web page or resource
uniform resource locator
URL
type of URI that specifies the location on the WWW and the mechanism for retrieving it
break down of a URL
two types of content on WWW
static
- -same for all users
- -appearance may vary based on specific browser but content is the same
- -HTML, CSS
dynamic
- -programmatically generated depending on the user, context, config, arguments, etc.
- -technologies: javascript
t/f internet is a completely connected graph
true
what is a web browser?
software that is used to access and display Web content and to navigate across the Web
2 main components of the browser
- Rendering engine (HTML/CSS): responsible for static content presentation, formatting and layout
- JavaScript Engine (JS): responsible for creating and modifying dynamic content and appearance
how does a web browser work?
Hypertext Transfer Protocol (HTTP) to transfer documents
• this is a client/server protocol
- client sends request
- server sends HTTP response, includes content that client request`
anatomy of an HTTP request
http request example
anatomy of an http response
most common status codes
200 OK - request succeeded, resulting resource (as stated in request) will be included in message body
404 Not Found - requested resource does not exist
500 server error - error on the server side in processing the request
http response example
HTML
hypertext markup language - standard used to describe format and structure with which content should be displayed on a web page
document contains elements
each element generally includes a start tag, some content, and an end tag
html facts
human readable
specifies how to structure data, not how to display it
browser chooses how to display content
HTML structure is hierarchical
Important HTML tags
!DOCTYPE
tells browser what version of HTML to use
HTML
root element
HEAD
contains info about the document using other tags (like title, link, meta, script)
BODY
all of the content for the browser to display
CSS
cascading style sheets: a formatting language used to describe the appearance of content in an HTML file
inline css
include css within the element tag itself as a style attribute
good:
easy to use
good for quick, one off situations
bad:
mixing content and presentation: this should be avoided
hard to manage
css internal
include css within the head of the HTML using style elements
good:
separate content and presentation
easy to use
good if you only have a limited amount of CSS in the page
bad:
hard to manage with lots of styling
cannot reuse across multiple pages
css syntax