Web Technologies by Jas
Web Technologies by Jas
The World Wide Web (WWW) was first proposed by Sir Tim Berners-
Lee in 1989, and the first website was launched in 1991. Since then,
the web has undergone significant changes, including the
development of new technologies and standards, the emergence of
mobile devices, and the rise of social media.
2. Web Development Cycle:
The web development cycle typically involves the following steps:
planning, design, development, testing, and deployment. The
planning phase involves identifying the goals and requirements for
the website. The design phase involves creating wireframes and
mockups of the website. The development phase involves writing
code to create the website. The testing phase involves checking the
website for bugs and usability issues. The deployment phase involves
publishing the website to a web server.
3. Web Publishing:
Web publishing refers to the process of making a website available
on the internet. This can be done by uploading the website files to a
web server or by using a content management system (CMS) to
manage the content of the website.
4. Web Contents:
Web content refers to the text, images, videos, and other media that
make up a website. Content can be created using various languages
such as HTML, CSS and JavaScript.
5. Dynamic Web Contents:
Dynamic web content refers to content that changes based on user
input or other conditions. This can be achieved using server-side
scripting languages such as PHP, Python, or Ruby, or using JavaScript
on the client side. Dynamic content allows for interactive experiences
such as online forms, user accounts, and personalized content.
Unit 2
HTML
HTML (Hypertext Markup Language) is the standard markup language used to create web
pages. It consists of a series of tags and attributes that define the structure and layout of
a web page.
DHTML
DHTML (Dynamic HTML) is an extension of HTML that allows for the creation of dynamic
web pages. It uses a combination of HTML, CSS, and JavaScript to create interactive and
dynamic effects on web pages.
XHTML
XHTML (Extensible Hypertext Markup Language) is a variation of HTML that adheres to
stricter syntax rules and is designed to be more extensible.
1. HTML Fundamentals:
HTML (Hypertext Markup Language) is the standard markup language used to create
web pages. It consists of a series of tags and attributes that define the structure and
layout of a web page. HTML documents are plain text files that can be created using any
text editor and viewed in a web browser.
2. HTML Browsers:
Web browsers such as Google Chrome, Mozilla Firefox, and Safari are used to view HTML
documents. These browsers interpret the HTML code and display the web page
accordingly.
5. Lists:
• Ordered List: an ordered list is a list of items that are numbered.
• Unordered List: an unordered list is a list of items that are bulleted.
• Definition List: a definition list is a list of terms and their corresponding definitions.
• Nesting List: a nested list is a list that contains another list within it.
8. Inserting graphics:
• Scaling images: images can be scaled by adjusting the width and height attributes of the
<img> tag.
• Frame set: frames are used to create a frameset, which is a collection of multiple HTML
documents displayed in a single web page.
• Forms: forms are used to create interactive elements on a web page, such as text fields,
checkboxes, and buttons.
10. DOM (Document Object Model): DOM is a programming interface for HTML and XML
documents. It represents the structure of a document as a tree-like structure, allowing for
easy manipulation of the document's content and layout.
• External:
an external style sheet is a separate .css file that is linked to an HTML
document. It can be used to control the presentation of multiple web pages.
• Internal:
an internal style sheet is included within the <head> section of an HTML
document. It can be used to control the presentation of a single web page.
• Inline:
an inline style is used to control the presentation of a specific element within
an HTML document.
6. Properties:
Properties are used to specify the presentation of an element. Common CSS
properties include color, font-size, margin, padding, and display.
7. Classes and Pseudo classes:
Classes and pseudo-classes are used to select specific elements to apply styles
to. Classes are defined by the developer and can be applied to any element on
the page, while pseudo-classes are pre-defined and are used to select
elements in a specific state, such as :hover.
8. CSS tags:
CSS selectors are used to select elements on an HTML page to apply styles to.
These include tag selectors, class selectors, and ID selectors. CSS properties
can be applied to these selectors to control the presentation of the selected
elements.
1. Scripting Language:
A scripting language is a programming language that can be used to write scripts, which
are a series of instructions that automate tasks. Scripts can be used to automate
repetitive tasks, perform calculations, and control the behavior of applications. They are
often interpreted rather than compiled, which means they are executed line by line by an
interpreter rather than being translated into machine code before execution.
• Client-side scripting refers to the use of scripts that are executed by the client's web
browser. Examples of client-side scripting languages include JavaScript, VBScript, and
ActionScript.
• Server-side scripting refers to the use of scripts that are executed on the web server.
Examples of server-side scripting languages include PHP, Python, and Ruby.
3. Reserved words:
JavaScript has a set of reserved words that cannot be used as variable or function names.
These include keywords such as "var", "function", "if", "else", and "return".
6. Putting comments:
Comments can be added to a JavaScript program by using two forward slashes (//) at the
beginning of a line. Comments are ignored by the browser and are used to explain the
code and make it more readable. Multi-line comments can be created by enclosing the
comments between /* and */.
1. Functions:
Functions are a way to group together a set of statements to perform a specific task. In
JavaScript, a function is defined using the keyword "function" followed by the function
name, a list of parameters, and a block of code. Functions can be called multiple times to
perform the same task with different inputs.
2. Statements in JavaScript:
JavaScript statements are the instructions that make up a script. They can include
assignments, function calls, control structures such as if/else and for loops, and object
manipulation.
3. Working with objects:
• Object Types:
JavaScript has several built-in objects such as Date, Math, String, and Event.
• Object Instantiation:
Objects can be created by instantiating a constructor function or by creating an object
literal.
• Date object:
The Date object is used to work with dates and times. It can be used to get the current
date and time, set a date, and perform calculations with dates.
• Math object:
The Math object provides properties and methods for performing mathematical
calculations such as rounding numbers, finding the maximum or minimum value of a set
of numbers, and generating random numbers.
• String object:
The String object provides properties and methods for working with strings such as
finding the length of a string, searching for a substring, and converting a string to
uppercase or lowercase.
• Event object:
The Event object is used to work with events such as mouse clicks and key presses.
• Frame object:
The Frame object is used to work with frames in a web page.
• Screen object:
The Screen object provides information about the user's screen such as the resolution
and color depth.
4. Handling Events:
• Event handling attributes:
Event handling attributes such as onclick, onmouseover, and onkeypress can be added to
HTML elements to specify the JavaScript code that should be executed when the event
occurs.
• Window events:
Window events include events such as onload and onunload that are triggered when the
web page is loaded or unloaded.
• Form events:
Form events include events such as onsubmit and onchange that are triggered when a
form is submitted or a form element's value changes.
• Event object:
The Event object is used to get information about the event that occurred, such as the
type of event and the target element.
• Event simulation: JavaScript can be used to simulate events such as click, mouseover, and
keypress to trigger the associated event handlers
JavaScript is a powerful language and can be used for many things such as creating interactive
web pages, making network requests, and even creating full-fledged web applications. It's
important to note that JavaScript can be executed on both client and server side, so that's why
it's a popular choice for web development.
1. Introduction to XML:
XML (Extensible Markup Language) is a markup language that is used to
structure and store data in a format that can be read by both humans and
machines. It is similar to HTML, but instead of defining the layout and
presentation of a web page, it defines the structure and meaning of the data.
XML is often used to store and transfer data between systems and
applications.
5. XML Schemas:
An XML Schema is a way to define the structure, elements, and data types of
an XML document. It provides a more powerful and flexible way to define the
structure of an XML document than a DTD.
6. XSL:
XSL (eXtensible Stylesheet Language) is used to transform XML documents
into other formats such as HTML or PDF. It consists of a set of templates that
are applied to the elements of an XML document to create the desired output.
XSL is often used to convert XML data into a format that can be displayed in a
web browser.
• Consistency:
The design should be consistent throughout the website, using the same colors, fonts,
and layout elements on each page.
• Simplicity:
The design should be simple and easy to navigate, with a clear hierarchy of information
and a limited use of visual elements.
• Accessibility:
The website should be accessible to users with disabilities, using techniques such as
providing alternative text for images and using proper heading structures.
• Responsiveness:
The website should be optimized to display correctly on different devices and screen
sizes, using techniques such as responsive design or separate mobile and desktop
versions.
• Optimization:
The website should be optimized for search engines and fast loading times, using
techniques such as compressing images and using semantic HTML.
2. Types of Website:
• Personal or portfolio websites: used to showcase an individual's work or personal
information.
• Business websites: used to promote products or services and provide information about a
company.
• E-commerce websites: used to sell products or services online.
• Social media websites: used to connect and interact with other users.
• News websites: used to provide news and information to users.
• Blogs: used to share information and opinions on a specific topic.
• Educational websites: used to provide educational resources and information.
• Government websites: used to provide information and resources from government
agencies.
• Entertainment websites: used to provide entertainment such as videos and games.
These are just few examples of types of websites, there are many more types and each one has its
own specific characteristics. The design and functionality of a website should be tailored to its
specific