Web Slides Combined
Web Slides Combined
Applications
RAJAD SHAKYA
Course Objectives:
To introduce the key foundations of the Web,
essential technologies and knowledge needed
for web application development, and to
highlight the recent developments on the
dynamic area of the Web.
Syllabus:
Chapter 1: Introduction (3 hours - 5 marks)
a. History
b. Internet and the Web
c. Client/server computing paradigm
Syllabus:
Chapter 2: Web basics (5 hours - 9 marks)
a. JavaScript basics
b. JavaScript DOM
Syllabus:
Chapter 5: Web applications
(6 hours - 11 marks)
a. Introduction
b. Blogs, wikis, social networking and collective
intelligence
c. Tagging - folksonomies
d. AJAX
Syllabus:
Chapter 7: Information representation and
sharing – XML (5 hours - 9 marks)
a. Service-oriented architecture
b. SOAP, WSDL, REST
Syllabus:
Chapter 9: The Semantic Web
(5 hours - 9 marks)
a. Introduction
b. RDF and Ontologies
c. Linked Open Data
d. Applications and Web 3.0
Chapter 1 :
Introduction
RAJAD SHAKYA
1.1 : History
The Internet
What is Internet ?
What is Internet ?
● Internet is a network of interconnected computers that is now
global
● The building blocks of the Web are web pages which are
formatted in HTML and connected by links called hyperlinks
and accessed by HTTP.
Client – Server Computing
Client
● An application program that runs on the local computer
Rajad Shakya
Chapter 2 :
Web basics
RAJAD SHAKYA
1.1 : HTML vs XHTML
HTML
(Hypertext Markup Language)
XHTML
(Extensible Hypertext Markup Language)
1.2 : History of HTML
● HTML was first introduced in 1991 by Tim Berners-Lee, the
inventor of the World Wide Web.
It included elements such as <TITLE>, <H1>, <P>, and <A>.
● <a href=“http://www.w3.org/Consortium/mission”>
Mission statement</a>
● Attributes:
- src
- alt
- width
- height
HTML Lists
● HTML Lists are used to specify lists of information.
● Attributes:
a. Type "1" numbered with numbers.
b. Type "I" upper case roman numbers.
c. Type "i" lower case roman numbers.
d. Type "A"upper case letters.
e. Type "a"lower case letters.
Unordered List or Bulleted List
● HTML Lists are displays elements in bulleted format.
● Attributes:
a. Type "disc" marked with bullets.
b. Type "circle" marked with circles.
c. Type "square" marked with squares.
d. Type "none" not marked .
HTML Comments
● Comments are some text or code written in your code
to give an explanation about the code, and not visible
to the user.
● Type attribute:
● You can use multiple class names (more than one) with HTML
elements but not ids.
CSS (Cascading Style Sheet)
● used to design HTML tags.
● Selector : h1 (HTML element)
1) Inline CSS:
<p style="color:blue">Hello CSS</p>
2) Internal CSS:
<style>
p{color:blue}
</style>
CSS (Cascading Style Sheet)
3) External CSS:
The link tag must be used inside head section of html.
<link rel="stylesheet" type="text/css" href="style.css">
style.css:
p{
color:blue;
}
CSS (Cascading Style Sheet)
1) CSS Element Selector:
Eg: p{
text-align: center;
color: blue;
}
CSS (Cascading Style Sheet)
2) CSS Id Selector:
- The id selector selects the id attribute of an HTML element to
select a specific element.
- An id is always unique within the page.
- It is written with the hash character (#), followed by the id of the
element.
Eg: #para1 { <p id="para1">Hello</p>
text-align: center;
color: blue;
}
CSS (Cascading Style Sheet)
2) CSS Class Selector:
Eg: * {
color: green;
font-size: 20px;
}
CSS (Cascading Style Sheet)
4) CSS Group Selector:
- The grouping selector is used to select all the elements with the
same style definitions.
Commas are used to separate each selector in grouping.
Eg: h1,h2,p {
text-align: center;
color: blue;
}
CSS Properties
● CSS Border
CSS border properties are use to specify the style, color and size
of the border of an element.
● border-style:
specify the border type which you want to display
○ - none : It doesn't define any border.
○ - dotted : It is used to define a dotted border.
○ - dashed : It is used to define a dashed border.
○ - solid : It is used to define a solid border.
CSS Properties
● border-width:
Eg. border-width: 5px;
● border-color:
○ There are three methods to set the color of the border.
○ Name: color name. For example: "red".
○ RGB: RGB value of the color.
For example: "rgb(255,0,0)".
○ Hex: hex value of the color.
For example: "#ff0000".
CSS Properties
● CSS Border - Shorthand Property:
Eg. p {
border: 5px solid red;
};
● border-radius:
CSS property sets the rounded borders and provides the
rounded corners around an element, tags, or div.
Eg. border-radius: 35px
Controlling Layout
CSS Properties
● CSS Border - Shorthand Property:
Eg. p {
border: 5px solid red;
};
● border-radius:
CSS property sets the rounded borders and provides the
rounded corners around an element, tags, or div.
Eg. border-radius: 35px
Information retrieval:
● the process of finding and delivering relevant information from
a vast collection of data or documents.
○ The seed URL serves as the initial entry point for the web
crawler to begin exploring the web.
How Web Crawlers Work:
● Sending HTTP Requests:
RAJAD SHAKYA
1.1 : JS Basics
● Variables & keywords
● Conditionals
● Looping
● Objects & Arrays
● Functions
● alert("message"); // message
● confirm("message"); // returns true or false
● prompt("message"); // returns user input string
1.2 : Javascript DOM
● Event handling
● document.querySelector
● document.querySelectorAll
● document.getElementById
● document.cookie = "name=acem";
● Reading a Cookie:
var user = document.cookie.getItem("name");
Cookies in JS
● Cookies (oldest and most well-known mechanism)
RAJAD SHAKYA
5.1 : Content management systems
● Content management system refers to the system
and processes whereby information is created,
managed, published, and archived.
● JS based (Angular)
● It works well for Web apps that are supported by large teams
Disadvantages of MVC:
● It is difficult to read, change, test, and reuse this
model
● Compensation Analysis
(Moniter Salaries & Benefits)
● HR Planning
(Plan for long term labour force needs)
Chapter 6 :
Web 2.0
RAJAD SHAKYA
Web 2.0
● The term “Web 2.0” was first used at O’Reilly Media Web
2.0 Conference (October 2004)
● Rich multimedia
● Personalization
● Cloud-based services
Web 1.0 vs 2.0 vs 3.0
Blogs:
● online platforms where people regularly post
articles, thoughts, or updates.
● include a comment section that allows readers to
engage in discussions
● enable easy creation and maintenance of blogs
without technical expertise.
● Bloggers can customize the appearance and layout of
their blogs to reflect their unique style or brand.
Blogs:
● serve as a medium for knowledge sharing,
storytelling, opinion sharing, and promoting products
or services.
● Group dynamic
● Decision-making
Tagging – folksonomies
● the categorization and organization of information
by users in a collaborative and informal manner.
● Blogging Platforms
● User-Centric Organization
● Collaborative Knowledge
AJAX (Asynchronous Java Script and XML)
● Increased Speed
● User-Friendly
Ajax:
● utilizes a combination of standards like JavaScript,
XMLHttpRequest (XHR), and XML or JSON for data
interchange.
Eg. https://www.w3schools.com/js/js_ajax_http.asp
Fetch (later)
● EG.
○ Form Validation
○ Infinite Scrolling
○ Weather Updates
Chapter 7 :
Information representation and
sharing – XML
RAJAD SHAKYA
XML
● XML is a markup language designed to store and
transport data in a structured format.
● No limitation of tags
● Highly readable
<html>
<body>
<h2>Book List</h2>
<ul>
<li>Introduction to Artificial Intelligence by John
Smith</li>
<li>Data Science Essentials by Jane Doe</li>
</ul>
</body>
</html>
Information Syndication - RSS
(Really Simple Syndication)
● web-based technology that allows users to receive and
access updated content from multiple websites in a
standardized format.
● RSS feeds contain headlines, summaries, and links to full
articles, blogs etc
● RSS enables efficient content distribution, allowing both
publishers and consumers to benefit from streamlined
information syndication and real-time updates across
various online platforms.
Information Syndication - RSS
(Really Simple Syndication)
● News Websites
● Blogs
● Weather Updates
● Job Listings