Web Development Programming Lesson 1
Web Development Programming Lesson 1
Lesson 1 Objectives
i. To understand the principles of creating an effect web page
ii. To Learn language of the web HTML & CSS
iii. Use specified markup language to develop a web page containing basic
HTML tags.
ii. server-side coding (backend), usually behind the scenes dealing with the
1|Page
Differences between client side scripting and server side scripting
Source code is visible to user. Source code is not visible to user because it’s output
of server side is a HTML page.
It usually depends on browser and it’s In this any server side technology can be use and it does not
version. depend on client.
There are many advantages link with this The primary advantage is its ability to highly customize,
like faster.
response times, a more interactive response requirements, access rights based on user.
application.
It does not provide security for data. It provides more security for data.
It is a technique use in web development It is a technique that uses scripts on web server to produce
in which scripts runs on clients browser.
a response that is customized for each client’s request.
HTML, CSS and JavaScript are used. PHP, Python, Java, Ruby are used.
Web design is an extremely broad field, and web developer’s job to take this design and develop
will often be broken down into more specific
it into a live, fully functional website.
roles such as User Experience Design, User
Interface Design and Information web developer is the builder or engineer.
Architecture. a web designer is the architect
2|Page
A Brief History of the World Wide Web
➢ Throughout the 1980s and early 90s the Internet was used primarily by
large corporations and universities for e-mail and document transfer.
➢ However, it wasn't until the development of Web browsers and a language
called HTML that things really took off.
➢ HTML (Hyper Text Markup Language) was developed by Tim Berners-Lee
while he worked as a researcher in Switzerland. The original intent of
HTML was to provide a quick and easy way to facilitate information
transfer among scientists.
➢ The basic idea behind HTML is the insertion of tags (for example <body>)
within plain ASCII text and the interpretation of those tags by a software
program called a browser. (software application for accessing information
on the world wide web)
Web server software returns Web pages (including pictures, audio and possibly video),
encoded in HTML, back to their Web browser clients.
The Uniform Resource Locator (URL) –is the web address Computers on the
Internet use the URL to make a connection between a Web browser and the target Web
server.
URL contains
• Protocol -rules that govern how computers communicate to each other) i.e. http
• Host or domain: www.html.com
• Path of the resource: full –form – http://www.html.com
Sections for Http url
http:// or https://
The "http" stands for Hypertext Transfer Protocol. It lets the browser to know
which protocol it is going to use to access the information specified in the domain. An
"https" protocol is short for "Hypertext Transfer Protocol Secure" and indicates that
information transmitted over HTTP is encrypted and secure. After the http or https is
the colon ( : ) and two forward slashes ( // ) that separate the protocol from the
remainder of the URL.
www.
www stands for world wide web and is used to distinguish the content. This portion of
URL is not required and many times can be left out. For example, typing
"http://computerhope.com" would still get you to the computer hope website. This
portion of the address can also be substituted for an important subpage known as a
subdomain
4|Page
computerhope.com
"computerhope.com" is the domain name for the website. The last portion of the domain
is known as the domain suffix, or TLD. It is used to identify the type or location of the
website. For example, ".com" is short for commercial, ".ac" for academic other
extensions
/jargon/u/
Next, "jargon" and "u" are the directories where the web page is on the server. In this
example, the web page is two directories deep. To find the file on the server, it would be
in the /public_html/jargon/u directory. With most servers, the public_html directory is
the default directory containing the HTML files.
url.htm
Finally, url.htm is the actual web page on the domain you're viewing. The trailing .htm is
the file extension of the web page that indicates the file is an HTML file. Other common
file extensions on the Internet include .html, .php, .asp, .cgi, .xml, .jpg, and .gif. Each of
these file extensions performs a different function, like all the different types of files on
your computer.
HTML tool editors - converts text and layout interface input into actual
HTML code
• There are so many software packages available to develop HTML. The software
packages can be grouped into two main categories:
5|Page
i. text-based (or code-based) editors i.e. (notepad)
ii. WYSIWYG (what you see is what you get) editors i.e. (dream weaver)
- the main markup language for describing the structure of web pages
Markup Language - a tag based language used to format web pages understood by
browsers like chrome, Firefox, safari, opera etc.
SGML is a standard set of specifications followed for specifying or building any markup
language.
6|Page
➢ Website: is a collection of inter-linked related webpages.
➢ Webpage: is a well formatted document used to share information over the
internet.
➢ Browser: is a software for interpreting and displaying HTML files (Firefox,
chrome, opera, safari)
Html Versions
7|Page
HTML5 provides a faster and more robust approach to web development.
Html Tags
HTML tag is a command that provides the directions for visual content that one sees
on the web.
Html is bound by angular brackets (<>) that always opens with a < (less than) sign and
closes with a > (greater than) sign. It controls the appearance, layout and flow of
the web page.
A tag contains three parts: element (identification of tag), attribute and value.
HTML tags can be of two types:
i. Paired Tags
ii. Singular Tags
1. Paired Tags
It is also called container tag. Have their companion tags opening/starting and
closing/ending tags.
Tag Examples
• html> … </html> — The root element. ...
• <head> … </head> — The document head. ...
• <title> … </title> — The page title. ...
• <body> … </body> — The page's content. ...
• <h1> … </h1> — A section heading. ...
8|Page
• <p> … </p> — A paragraph. ...
• <a> … </a> — A link. ...
• <img> — An image. The img element lets you insert images into your web pages
Step 4: Open the HTML page in your web browser. i.e. chrome, fire fox
Mozilla
Output
9|Page
Building blocks of HTML
➢ Tags: An HTML tag surrounds the content and apply meaning to it. It is written
between < and > brackets.
Core types of Attributes The four core attributes that can be used on the majority of
HTML elements (although not all) are:
• Id
• Title
• Class
• Style
10 | P a g e
The style Attribute
The style attribute allows you to specify Cascading Style Sheet (CSS) rules within the
element.
11 | P a g e