Web Design and Programming CH 1
Web Design and Programming CH 1
• It is writing a set of instructions for computers that direct them to do a • It involves the tasks associated with developing a website for the Internet.
specified task.
• It is the implementation of logic to facilitate particular computing • It involves the tasks that help in developing websites.
operations and functionality. • Web development includes web content development, client-side scripting,
server-side scripting, network security configuration, and more.
• A programmer is usually responsible for writing codes for desktop software • Web developers write code for the websites.
and applications or improving the current standard of software, or
implementing some new features and functionalities.
• A programmer’s job also involves testing and fixing bugs.
• Programmers can use any number of programming languages such as • Web developers mainly use HTML to organize text, CSS to define how
Python, Java, C#, JavaScript, and C++ to build an application. that text displays, and JavaScript for client-side work.
• They may also use backend or server-side languages like PHP, ASP.net,
Python, and NodeJS or databases languages like SQL.
• Programmers write their script in a language depending on their choice and • In addition to some programming languages, web developers also use
goals. graphics and video software.
• A programmer may not necessarily be a web developer. • All web developers know how to program using programming languages.
Thus, a web developer is also a programmer who can build web-based
Compiled By Aliazar D. (MSc in SEng) applications. 7
• What is Internet?
• The internet is a globally connected network system that
transmit data via various types of media.
• It is a network of global exchanges – including private,
public, business, academic and government networks –
connected by guided, wireless and fiber-optic
technologies.
• The terms internet and World Wide Web are often used
interchangeably, but they are not exactly the same thing;
Compiled By Aliazar D. (MSc in SEng) 8
Conti..
• When you browse the web today, your browser on your desktop or mobile
device is the client. You enter a URL into your browser to visit a website.
• Your browser, the client, connects to the computer that holds the website you
want to visit, the server, and sends a request for the website using a standard
called the Hyper Text Transfer Protocol (hence http://).
• The server accepts this request and sends a response to your browser along with
the requested data if available.
✓ If you entered the right address and the website is live, the server sends the
browser the appropriate HTML page and you see the homepage on your
screen.
✓ If there was an error, the server responds with an error code, such as 404,
when it can’t find the page you requested.
• That is the client-server model of the world wide web in action.
Compiled By Aliazar D. (MSc in SEng) 18
Universal Addressing
(TCP/IP, DNS, DHCP)
TCP/IP DNS
Transport Control Protocol/Internet Protocol Domain Name System
• Every device on the Internet is assigned an IP
• A set of rules for communication between
computers where each device (host) is address, but navigating to them using their 12-digit
assigned a unique IP address which is valid IP address would be very cumbersome.
on a particular network. • DNS allows a domain name to be used as a
• An IP address is made up of 4 "octets" pseudonym for a specific IP address. (i.e.
ranging between 0 and 255, and separated www.example.com).
by a period or dot. (Ex. 128.241.171.241) • When you type in a web site name, your system
• An IP address can be assigned statically or looks up the name on an assigned DNS server and
dynamically. resolves it to its IP address. It can then access the
web site.
Dynamic Host Configuration Protocol (DHCP)
• It is a client/server protocol that automatically provides an Internet Protocol (IP) host
with its IP address and other related configuration information such as the subnet mask
and default gateway. Compiled By Aliazar D. (MSc in SEng) 19
URLs Protocols
(HTTP, FTP, SMTP)
• A URL (Uniform Resource Locator) aka a
web address is a unique identifier used to
locate a resource on the Internet.
• URLs consist of multiple parts -- including a
protocol and domain name -- that tell a web
browser how and where to retrieve a
resource.
• The protocols which are used to access
resources on the internet includes HTTP
(Hyper Text Transfer Protocol), FTP (File
Transfer Protocol), SMTP (Simple Mail
Transfer Protocol) and the resource is
reached through the domain name system
(DNS) name. Compiled By Aliazar D. (MSc in SEng) 20
Conti..
• HTTP is the backbone of the World Wide Web (WWW).
It defines the format of messages through which Web
Browsers and Web Servers communicate, whilst also
defining how a web browser should respond to a particular
web browser request. Conti
• FTP is the underlying protocol that is used to, transfer
files over a communication network. It establishes two
TCP connections: Control Connection to authenticate the
user, and Data Connection to transfer the files.
• SMTP is used by Email servers all over the globe to
communicate with each other.