CSSE280: Introduction To Web Programming: Introductions, Internet, WWW, HTML Intro
CSSE280: Introduction To Web Programming: Introductions, Internet, WWW, HTML Intro
Programming
Introductions, Internet, WWW, HTML Intro
Front-end development
Back-end development
Node.js
Data-driven application
MongoDB
REST API
2
Agenda
In-class partners
HTML Intro
3
Roll call, Introductions
Instructor Introductions
v Why I am doing this course (passion for Web dev, learn by teaching)
5
Course intro
Course Grades
Weight Grade Component
10% Quizzes
http://code.visualstudio.com/Download
v Installation instructions:
https://www.rose-hulman.edu/class/csse/csse280/201710/Software/vscodeInstallation.pdf
v IntelliSense
8
5-mins break
9
Internet vs World Wide Web
The Internet
The Internet
v Early web browsers released: Mosaic 1992, Netscape 1994, Internet Explorer 1995
v Each device has a 32-bit IP address written as four 8-bit numbers (0-255)
v Some programs (games, streaming media programs) use simpler UDP protocol instead of TCP
14
World Wide Web
v Web Server: software that listens for Web page requests and serves up the requested pages
Apache - http://www.apache.org
Microsoft Internet Information Server (IIS) - http://www.iis.net/
Express - https://expressjs.com
Phusion Passenger - https://www.phusionpassenger.com
15
World Wide Web
Popular browsers
16
Organizations you should know
v web standards
17
Domain Name System (DNS)
v Example:
www.rose-hulman.edu è 137.112.18.53
http://mxtoolbox.com/DNSLookup.aspx
18
Uniform Resource Locator (URL)
v http://www.rose-hulman.edu/class/csse/csse280/index.html
protocol host path
v Ask the server to GET /class/csse/csse280/index.html and display the result in the browser
19
Advanced URLs
v http://en.wikipedia.org/wiki/HTML_element#Anchor
Fetches the HTML_element document, then jumps to the part of the page labeled Anchor
Port: for web servers on ports other than the default port 80
v http://portquiz.net:8080/index.php
20
Advanced URLs
http://www.google.com/search?q=miserable+failure&start=10
21
Hypertext Transfer Protocol (HTTP)
Defines a set of commands understood by a Web server and sent from a browser
Some HTTP commands (your browser sends these internally)
22
HTTP status codes
When a request is made by the browser, a response is sent back by the server with a
status code, possibly followed by a Web resource
Number Meaning
200 OK
301-303 Page has moved (temporarily or permanently)
403 It is forbidden to access this page
404 Page not found
500 Internal server error
Complete list of HTTP status codes 23
Internet Media Types (MIME)
26
Page title: <title>
27
Paragraph: <p>
28
Headings: <h1>, <h2>, … <h6>
<!DOCTYPE html>
Separate major areas of a page <html>
(block element) <head>
<title>Introduction to HTML </title>
This is placed within the body of </head>
the page
<body>
Examples: <p>This is a paragraph of text </p>
<h1>University of Smart People</h1>
v http://www.w3schools.com/tags/tryit.as
<h2>Department of Computer Science</h2>
p?filename=tryhtml_headers <h3>Sponsored by Big Rich Corporation</h3>
<h6>We teach the best stuff here!</h6>
</body>
</html> 29
Questions?