Professional Documents
Culture Documents
HTML
Prof: Dr. W
Date: 08/22/2019
File Transfer
How computers exchange files over TCP/IP or UDP/IP
→ File Transfer(collaboration)
→ Electronic Mail(communication)
1. Unicast
2. Broadcast
3. Multicast
4. Anycast
Unicast(One to some)
Broadcast(One to all)
- Point to All-Point file transmission that often uses UDP.(TCP has a huge
overhead with multiple destinations due to ACK)
The Internet
- The Internet is a network of autonomous networks
- Each autonomous network, or domain, is controlled by a person,
company, institution, or organization.
WEEK 2 (Class 1)
**Madness to my method or method to my madness**
Protocols
**Client/Server computing**
Client computers request services from server computers(eg. mail, web file,
print)
- Retrieve data
- Store data
- Print data
Mail - SMTP
Web- HTTP
File - FTP
- Resource← Server might or might not have the resource you requested, or
you are not authorized.
Server
name
DCE(Distribute Company
Environment) places resources in
the environment
URI
- A string of characters used to genetically identify a resource
- Public://ResourceName
- Private://ResourceName
- All URLs are URIs
HTTP
- A unicast protocol that utilizes a client/server model to transfer files
between two computers. (HTML, txt, pdf, docx, GIF, JPG, TIFF, PNG)
- Clients are web browsers that request, receive and display
messages (HTML data)
- Servers send messages in response to client requests
- The HTTP process
- A client initiates a TCP connection to a server via Internet Socket
port 80
- The server accepts the TCP connection from the client.
- The message is exchanged between the client and the
server(sends packets to the client)
- The server closes the TCP connection
HTTP versions
- Version 0.9
- Extremely simple, single line GET requests
- HTTP version 1.0
- Extended and more robust
- HTTP version 1.1
- Standardized protocol
- HTTP version 2.0
- Provides greater performance
HTTP REQUEST/RESPOND
- A client sends a REQUEST message to the server to request actions be
performed on the identified resource by the server
- A server sends a RESPOND message back to the client to inform them
about the status of the request
- REQUEST MESSAGES
- GET(Everytime you click a URL, it GETS the URL)(most common)
- Request data from server
- GET should not be used for operations that cause side-
effects, such as using it for taking actions in web
applications
- HEAD
- Like GET, but server only returns header information about
the server. Server will send basic info about itself(like what
version of html it is speaking..etc)
- Post(Eg, submitting an online form, sends back to server)
- Submits data to be processed by server
- Creates data
- PUT
- Similar to POST, but updates existing data
- DELETE
- Removes data from server
- RESPONSE MESSAGES
- 200 OK
- Success
- 404 FIle/Resource not found
- (100, 200(most common message), 300, 400, 500)
LAMP Stack
● Lamp is an acronym for
○ Linux OS
○ Apache web server
○ MySQL database
○ PHP server-side development technology
ABCD Stack
● ABCD is an acronym for
○ A= OP system?
○ B= WebServer sw
○ C=Database sw
○ D=Server side sw
WISA Stack
● WISA is an acronym for
○ Windows OS
○ ISS web server
○ SQL database
10
11
Markup Languages
● A document markup language provides a syntax, similar to a
programming language, that allows the author to define the following
○ The document’s content
○ The content’s structure
○ The content’s format
Content
● A document’s content may include words, sentences, and paragraphs.
● May also include audio and video
Structure
● Structure defines how the document’s content is logically organized
and displayed in a browser window.
● Eg. Paragraph
Format
● Format defines how the document’s content appears in a browser
window
● Includes
○ Bold, Underline, Italic
○ Font Family and Font Size
○ Text Color and Background Color
○
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Week 3(Class 2)
<br /> breaks the line
HTML Heading
The Heading elements allow you to change the font size of the default font
within and HTML document.
<h1> … </h1>
<h2> … </h2>
<h3> … </h3>
<h4> … </h4>
- Character (&aplha)
<ul>
<li>Cat</li>
<li>Dog</li>
33
<li>Frog</li>
</ul>
Nested HTML
<ul style=”list-style-type:X”>
X is..
Disc
Circle
Square
None
34
35
36
37
38
39
40
41
42
43
44
45
-
Each
<tr>...</tr> element pair defines a
row in the table
- Each <th>...</th> element pair defines a
column in the row in which it is defined
- Bold centered aligned text
- Each <td>...</td> element pair defines a column in the row in which
it is defined
- Left aligned text
46
Week 6(Class 1)
HTML FORMS
- An HTML form is a section of an HTML document containing normal
content, markup, special elements called form controls, and labels on
those controls
- Used generally to “complete” a form by modifying its controls, before
submitting the form to an agent for processing
47
48
RESET
49
SUBMIT
HIDDEN
50
TEXT
51
52
53
PASSWORD
54
CHECKBOX
55
Week 6(Class 2)
It is good practice to make sure one radio button is checked!!
Radio Buttons
- A radio button input form control is like a checkbox except that when
several share the same control name, they are mutually exclusive.
- That is, when one is switched “on”, all others with the same
name are switched “off”.
- If no radio button in a set, sharing the same control name, is
initially “on”, user agent behavior for choosing which control is
initially “on” is undefined.
- <input type = “radio” name=”text” value=”text”
checked=”checked” />
Image
- An image input form control creates a graphical submit button.
- The value of the src attribute specifies the URI of the image that
will decorate the button.
- For accessibility reasons, authors should provide alternate text
for the image via the alt attribute.
- <input type =”image” src=”URL” alt=”text”>
56