the internet and web programming technologies are designed to be
portable
portability
allows you to design web pages and applications that run across an enormous range of Internet-enabled devices
client-side programming
technologies are used to build web pages and applications that are run on the client (in browser on users device)
sever-side programming
the applications that respond to requests from client-side web applications (searching internet, checking bank account)
web page
an html document that describes to a web browser the doc’s content and structure
html docs normally contain
hyperlinks
hyperlinks
when clicked load a specified web document
T/F: only text may be hyperlinked
False: images and text
when the user clicks a hyperlink,
a web request is sent to a web server
web server
locates requested web page and sends it back to user’s web browser (make resources available)
hyperlinks can reference
other web pages, email addresses, files, and more
if a hyperlink references a file that the browser is incapable of displaying,
the browser prepares to download the file and prompts user for information about how file should be stored
URIs
Uniform Resource Identifiers, identify resources on the Internet
URIs that start with http:// are called
URLs (uniform resource locators)
URL contains
information that directs a browser to the resource user wishes to access
HTTP
HyperText Transfer Protocol is used to obtain resource
after http in URL is the
hostname
hostname
the name of the web-server computer on which the resource resides. computer is the host bc it houses and maintains resources
hostname is translated into
IP (internet protocol) address
an internet Domain Name System (DNS) server
maintains a database of hostnames and their corresponding IP addresses and performs the translations automatically
GET
HTTP method indicating client wishes to obtain a resource from the server
other than GET, a client request includes
path name of resource and protocol’s name and version number (HTTP/1.1)
- can also contain required and optional headers
404 not found means
web server could not locate requests resource
2 most common HTTP request types
GET and POST