Lecture 1 - Introduction
Lecture 1 - Introduction
Programming
W.A. Alhaji 1
Course Outline
Introduction to WWW
2
Learning
Outcomes
In this chapter, you will learn about:
◦ Overview of the Internet
◦ Introduction to the World Wide Web
◦ Writing a basic HTML web page
3
The Internet vs. The Web
The Internet is a worldwide
network of computers all attached
in a global networking scheme.
4
The Internet vs. The Web
The World Wide Web is a collection
of electronic documents
(containing text, graphics, and
even multimedia contents) that are
linked to one another via
hyperlinks.
5
History of the Web
7
Fundamental technologies of
WWW
WEB CLIENT: Requests and receives WEB PAGES from
server.
HTTP
Page request
HTTP
Server response
11
HTTP
Hypertext Transfer Protocol
A set of rules for exchanging files such as
text, graphic images, sound, video, and
other multimedia files on the Web.
HTTP Request
HTTP Response
URL
Represents the address of a resource on the Internet.
13
What is a Web Page?
Web pages are text files containing
HTML
HTML – Hyper Text Markup Language
◦ A notation for describing
document structure (semantic markup)
formatting (presentation markup)
◦ Looks like:
A Microsoft Word document
The markup tags provide information
about the page content structure
14
Creating HTML Pages
An HTML file must have an .htm
or .html file extension
HTML files can be created with text
editors:
◦ NotePad, NotePad ++, PSPad
Or more advanced HTML editors:
◦ Macromedia Dreamweaver
◦ Netscape Composer
◦ Microsoft Visual Studio
15
Creating HTML using notepad
Step 1: Go to my computer
Step 2: double click c: / drive
Step 3: create a new folder and name it web
programming
Step 4: Open notepad in accessories
Step 5: Type your html code into your notepad
Step 6: In the notepad go to file, click save as.
Step 7: In the save as dialog box, move to the
location of web programming folder you initially
created.
Step 8: type the name of your document in the
file name box with the extension .html. Click
save
Running html in the
browser
Step 1: go to my computer
Step 2: double click c:/ drive
Step 3: go to web programming
folder
Step 4: find the document and
double click it.
◦ the html document will open with
your default browser.
Creating a simple web
page
To start - Create a Folder:
◦ You’ll find it helpful to create folders to organize your
files as you develop the web pages in this book and
create your own websites.
To create a new folder with Windows:
◦ Launch Windows Explorer (either press the Windows
key or select Start > All Programs > Accessories >
Windows Explorer), and navigate to the location where
you would like to create the new folder, such as My
Documents or your C: drive.
◦ Right Click > New > Folder.
◦ To rename the New Folder, right-click on it, select
Rename from the context menu, type in the new name,
e.g mynameWebpages and press the Enter key.
18
Creating a simple web
page
Launch Notepad or another text editor and type in
the following code.
◦ <!DOCTYPE html>
◦ <head>
◦ <title>My First Web Page</title>
◦ </head>
◦ <body>
<h1>Welcome!</h1>
<p>Hi, I am __________, with Registration number
CST/16/COM/0000. </p>
<p>I think I’ll enjoy web programming.</p>
◦ </body>
◦ </html>