Web Design-Lecture1-Theory
Web Design-Lecture1-Theory
Hoshang Qasim
E-mail: [email protected]
2021
Course Outlines
HTML CSS
2
World Wide Web(WWW)
4
Web Architecture
• Web Browser
A program used to view, interact with
web pages and navigate the World request
1
Wide Web
• Internet 4
a connection of computer networks response 2
using the Internet Protocol (IP) Web Browser
3
7
• AJAX
Web page VS Website
Attributes Webpage Website
A webpage is defined as the smaller part of the website A website is a cluster of different webpages of different
Short Definition that includes contents like text, media, etc. It also topics addressed to certain URLs.
comprises links to many other relevant webpages.
It is a single document that is displayed by the web It is a collection of many documents. Web browsers are used
browser using a specific URL address. to access such documents using specific URL addresses
File Type
attached to the website.
It can be accessed using a direct URL link or through It can be accessed through a domain address.
Accessible by a website.
The web page URL includes the extension. i.e., the path The website URL does not include any extension.
Extension
of the file.
It is comparatively less-complex to develop because it is It is comparatively more complex to develop.
Complexity just a smaller part of the website.
It requires less time for development as it is not complex, It requires comparatively more time for development.
Development time like a website.
8
Common Contact Page, Registration Page, Sign Up Page, About Amazon.com, Wikipedia.org, JavaTpoint.com, etc.
Examples Page, or any other page like this.
Web page VS Website
https://www.soran.edu.iq/students-activities.html
9 Web page
Web Application
▪ A web application is a software program that runs in an Internet browser or through a web
page.
▪ Similar to a software program that runs on a computer, web application is a set of web pages
that are generated in response to user requests.
▪ A web application is a computer program that operates web browsers and web technology to
perform tasks over the Internet.
• Dynamic website: Dynamic websites contain Web pages that are generated in real-time
• using a server-side scripting language such as PHP, ASP,JSP.
• May generate different HTML for each request .
• content is called in by the scripting language from other files or from a database depending
on actions taken by the user.
11 • Require Database design.
Static and dynamic websites
12
Front End Vs. Back End
• The Front End is the stuff that you see and interact with: HTML, CSS , and JS
• The Back End is everything else: so many choices!
Such as:
PHP
Python
MYSQL
MONGODB
WEB Server
Example
Restaurant Analogy: The back end is everything that happens in the kitchen; the
front end is what is plated and sent to your table
Web Developers
• The world wide web (WWW) is accessible via the Internet, as are many other
services including email, web app, file sharing, etc.
15
How does the Internet Work?
• Through communication protocols
• A communication protocol is a specification of how communication between
two computers will be carried out.
• IP (Internet Protocol): defines the packets that carry blocks of data from one
node to another.
• Internet Protocol (IP) is a method or protocol by which data is sent from one
computer to another on the Internet.
• Each computer on the Internet has at least one IP address that uniquely
identifies it from all other computers on the Internet.
17
How does the Internet Work?
• UDP (User Datagram Protocol): the protocols by which one host sends data
to another.
• UDP is an alternative protocol to the TCP, Unlike TCP/IP, UDP does not divide
18
each transmission into packets, which allows for a faster transmission.
Domain Name Service
19
Search Engine
• The engine provides a list of results that best match what the user is trying to
find.
20
Why to learn HTML, CSS, JScript
21
HTML
22
• Maintained by W3C - World Wide Web
HTML
23
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>HTML5 Sample Document</title>
</head>
<body> Hello World!
</body>
</html>
24
• Save the file as "mypage.htm or html
Tags and elements HTML
Example
Element • The opening tag says, “This is the beginning of a heading”
content
Opening tag Closing tag
25
Skeleton of HTML
HTML
<html>
• four main elements that form the basic structure of every document:
<html>, <head>, <title>, and <body>
<head>
• These four elements should appear in every HTML document
• Its called skeleton of the HTML document
<title>
• without the skeleton HTML files will not be rendered correctly
in web browsers
<body>
26
Skeleton of HTML5
• Visualization of an
HTML page structure:
27 Note Only the <body> area (the white area) is displayed by the bowser.
Cascading Style Sheets (CSS)
What is CSS?
28
Cascading Style Sheets (CSS)
Why CSS?
29
Cascading Style Sheets (CSS)
CSS Syntax
30
selector {property: value; ... }
Selector
A selector is an expression that specifies which elements to style.
Property
Define what aspect of the selected element will be changed or styled.
31
Cascading Style Sheets (CSS)