Web Designing Notes
Web Designing Notes
HTML & Graphics: HTML 4.0 Tag Reference, Global Attributes, Event Handlers, Document
Structure Tags, Formatting Tags, List Tags, Hyperlinks, Image & Image map, Table Tags,
Form Tags, Frame Tags, Executable Content Tags. Image Maps, Advanced Graphics, Tables,
XML: Introduction to XML, Problems with HTML & SGML. Types of XML Markup.
Document Type Definitions, Linking, Using Style Sheets with XML, XML Summary
Introduction to Java Scripting, Web Browser Object Model, Manipulating Windows & Frames
with Java Script. Using Java Script to create smart forms. Cookies and State Maintenance:
of Cookies, How to Use Cookies, which Servers and Browsers support Cookies. Introductionto
DHTML. Advanced Netscape DHTML, Advanced Microsoft DHTML & Cross browser DHTML.
CGI & Server side scripting, CGI & the WWW, Beyond HTML with CGI, How CGI works.
CGI Server requirements for WINDOWS-NT & UNIX, CGI script structure, Standard CGI
Java Script.-Web Database Tools, ORACLE & MS-ACCESS, Database tools, PHP, Server Side
Front-end technologies are for the “client side” of your website or application. They’re used to
develop the interactive components of your website, and produce the elements that users see
and interact with. This includes text colours and styles, images, buttons, and navigation menus.
Back-end technologies are for the “server side” of your website or application. They’re for
developing thetechnical foundation. They store and arrange data and make sure everything on
the front-end works.
For example, when a user provides login credentials to a social media application, back-end
technologies are
used to check if those credentials are accurate. Once the credentials are verified, the server will
send back the
Front-end Technologies:
1. HTML
HTML stands for Hyper Text Markup Language. It’s one of the fundamental technologies
required for web development. It provides the base structure for a web page. HTML code
ensures that all the content on a websiteis properly formatted. This is so your Internet browser
can display the content as intended. Without HTML, a browser couldn’t display text or load
images and other elements.
HTML5, the most current version of HTML, specifies a large number of Application
Programming Interfaces
(API integration services) that can be used with JavaScript for a more interactive and dynamic
website:
Canvas: Canvas is an HTML5 element used to draw images and shapes and manipulate them. It
can also be used for more complex cases such as game graphics and [Link]: II [Link]
IT 22CIU18-Principles of Web Designing 8
Web Storage: Web Storage is used to store information right in the browser. Some examples of
this would be storing user login information and saving user preferences for a website.
Service workers: Service workers enable a script that keeps running in the background when a
web page is opened and is mainly used in websites with offline capabilities. It makes pages
available offline and allows for the use of web push notifications. It can send these notifications
even when your browser isn’t open.
Web Sockets: Web Sockets allows for persistent two-way connection between the user and the
server. The most common use cases include chats and notifications in web apps.
2. CSS
Cascading Style Sheets, abbreviated as CSS, define the style and aesthetics of a web page. While
HTML is used to structure a web page, CSS specifies the appearance of that structure. This
includes page layouts, colours, fonts and element positioning. If HTML is the bones of the web
page, CSS is the skin. It makes the Internet, and your website, look good.
JavaScript is more than just a language — it’s an entire ecosystem that spans frameworks, task
runners, server-side development, and more.
A variety of programming languages and frameworks are involved in building the software aka
back-end.
Frameworks are libraries of pre-written code with a pre-imposed structure that a back-end
developer can use according to the requirements and needs. Whereas, a programming
language is a superset of scripting languages like Ruby, Java, Python, PHP, Perl, Erlang, and
[Link] which can be used to write instructions for execution.
2. Web Servers
Web servers are computer programs that store, process and deliver web pages to the users.
The most popular ones include Apache (an open-source web server which is currently used by
50% of all websites) and NGINX which is good for reverse proxying, caching, load balancing and
media streaming processes.
A Database Management System (DBMS) is a collection of programs that enables its users to
access a database,manipulate, interpret and represent data. MySQL is the world’s most popular
openClass: II [Link] IT 22CIU18-Principles of Web Designing
It’s not only accessible but also free. Its ease of setup and speedy performances make it a
favorite among many backend developers.
ADVANTAGES:
Business Revolution
Limited Interactivity
Lack of Skills
Security Risks
Browser Compatibility
Standardization
INTRODUCTION TO HTML LANGUAGE:
HTML stands for Hyper Text Markup Language, HTML is the standard markup language for
creating Web [Link] describes the structure of a Web page , HTML consists of a series of
elements ,HTML elements tell the browser how to display the content.
HTML stands for Hyper Text Markup Language. It is used to design web pages using markup
language. HTML is the combination of Hypertext and Markup language. Hypertext defines the
link between the web pages.
Markup language is used to define the text document within tag which defines the structure of
web pages.
This language is used to annotate (make notes for the computer) text so that a machine can
understand it and manipulate text accordingly. Most markup languages (e.g. HTML) are human
readable. Language uses tags to define what manipulation has to be done on the text.
Web browsers receive HTML documents from a web server or from local storage and render
the documents into multimedia web pages. HTML describes the structure of a web page
semantically and originally included cues for the appearance of the document.
HTML elements are the building blocks of HTML pages. With HTML constructs, images and
other objects such as interactive forms may be embedded into the rendered page. HTML
provides a means to create structured documents by denoting structural semantics for text
such as headings, paragraphs, lists, links, quotes and other items.
HTML elements are delineated by tags, written using angle brackets. Tags such as <img /> and
<input />directly introduce content into the page. Other tags such as <p> surround and provide
information about document text and may include other tags as sub-elements. Browsers do not
display the HTML tags, but use them to interpret the content of the page.
INTRODUCTION TO HTML 4.0/XHTML:
HTML is a descriptive language that helps convert text into hypertext by adding special code, These
special code are called tags or elements.
The tags tell an HTML interpreter, such as a browser, how to display the HTML document.
There are various tags that we can use to format an HTML document. For example, we can use
tags to represent text in boldface, italics or a list. When we enclose text within tags, it becomes
an element.
An element is used to describe the contents in an HTML document. Elements are the main
markup components.
Each element represents a piece of data that is identified by a tag.
HTML tags not case sensitive and following a consistent casing is not required. However,
keeping all tags in upper case is common practice. This helps differentiate tags from the text in
a document.
Element standards:
• HTML elements are defined in a series of freely available open standards issued since 1995,
initially by the IETF and subsequently by the W3C.
• During the browser wars of the 1990s, developers of user agents (e.g. web browsers) often
developed their own elements, some of which have been adopted in later standards. Other user
agents may not recognize non-standard elements, and they will be ignored, possibly causing the
page to be displayedimproperly.
• In 1998, XML (a simplified form of SGML) introduced mechanisms to allow anyone to develop
their own elements and incorporate them in XHTML documents, for use with XML-aware user
agents.
• Subsequently, HTML 4.01 was rewritten in an XML-compatible form, XHTML 1.0 (eXtensible
HTML). The elements in each are identical, and in most cases valid XHTML 1.0 documents will
be valid or nearly valid HTML 4.01 documents. This article mainly focuses on real HTML, unless
noted otherwise; however, it remains applicable to XHTML. See HTML for a discussion of the
minordifferences between the two.
The <HTML> tag is the first tag in every HTML document. This tag indicates that the content of
a file is in the HTML document. This tag is mandatory in all HTML documents.
If we do not use the <HTML> tag, a browser does not identify the content as HTML text and,
therefore, does not display anything. The HTML element immediately follows the prologue
document identifier to identify the document as an HTML document.
The prologue document identifier also provides information about the HTML specification to
which thedocument conforms. This information is useful when we want to ensure that the HTML
specification we use is compatible with the browser used by majority of people who will read our
HTML document, We can choose not to specify the document identifier when browser
compatibility is not an issue.
Here the <html> element tells the browser that the page will be formatted in HTML and,
optionally, which world language the page content is in.
Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
The HEAD element is used to present different kinds of information about the HTML document,
The elements related to the HEAD element are:
BASE
TITLE
META
We can use these elements to provide important information about the HTML page to
the web browser. No specific order is required.
The BASE Element
We use the BASE element to specify the base address of an HTML document. This
prevents the document from
being read out of context. All partial URL’s that are referenced within the document are
resolved relative to this
base address. The base element uses the HREF attribute to identify the base URL.
For example:
<BASE HREF = [Link]
The TITLE Element:
We use the TITLE element to specify the title of an HTML page. The TITLE element is a
string that identifies the contents of the document.
The title is displayed in the title bar of the browser window. We can add the title of an
HTML page to the Favorites or Bookmark list of our browser.
Ex:
<HEAD>
<TITLE>
This is my home page
</TITLE>
</HEAD>
The META ElementClass:
We use the META element to specify the information that is not defined by the other
elements in the HTML page. We can use META element to indicate how an Internet-
based search engine should index the HTML document.
The <META> tag has the following attributes:
The NAME Attribute:
We can this attribute to provide the META – Information name to the browser. If the
NAME attribute is missing from the HEAD element, the NAME attribute is assumed as
equal to the value of HTTP-EQUIV.
The HTTP-EQUIV Attribute:
We use the HTTP-EQUIV attribute to set or retrieve information to bind the content of a
META tag to an
HTTP response header.
An HTTP server reads the content of the HTML document head to generate response
headers corresponding to any elements defining a value for this attribute.
Example:
<HEAD>
<META HTTP-EQUIV = “ Refresh” CONTENT = 10>
<TITLE> HTTP-EQUIV examples</TITLE>
</HEAD>
<BODY>
This document will load itself once every 10 seconds.
</BODY>
The CONTENT Attribute:
We can use the CONTENT attribute to set or retrieve meta-information to associate with
the HTTP-EQUIV
or NAME attributes.
For example:
The following code specifies the author name of an HTML document:
<META NAME = “Author” CONTENT = “William”>
Example:
<BODY BGCOLOR = “ #RRGGBB”>
Document text here
</BODY>
The LEFTMARGIN Attribute:
This attribute is used to set the left-hand margin for an HTML page. Setting a left
[Link] a left margin indents text relative to the left margin of the page.
<BODY LEFTMARGING ‘ “60”>
This document is indented 60 pixels from the left margin of the page.
</BODY>
The TOPMARGIN Attribute
This attribute is used to set the top margin for an HTML page. Setting a top margin
indents the text relative to the top of the page.
<BODY TOPMARGIN = “60”>
This document is indented 60 pixels from the top of the page.
</BODY>
HTML & Graphics
HTML 4.0 extends HTML with mechanisms for style sheets, scripting, frames, embedding
objects, improved support for right to left and mixed direction text, richer tables, and
enhancements to forms, offering improved accessibility for people with disabilities.
Html:
Html:
<map name="example">
</map>
Html:
4.<object> - Embeds an external object, such as an image, audio, video, Java applet, or Flash
animation.
Html:
</object>
Html:
</applet>
Html
Html:
<frame> and <frameset> - Defines frames for splitting the browser window into multiple panes.
Html:
<frameset cols="25%,75%">
<frame src="[Link]">
<frame src="[Link]">
</frameset>
9.<noframes> - Provides alternate content for browsers that do not support frames.
Html:
<noframes>
These are some of the key HTML 4.0 tags related to graphics and multimedia. Keep in mind that
HTML 4.0 is quite old and has been largely superseded by HTML5, which offers more advanced
multimedia capabilities and better support for modern devices and standards.
1. Structure Tags:
o <html>: Defines an HTML document.
o <head>: Contains meta-information about the HTML document.
o <title>: Sets the title of the HTML document (inside <head>).
o <body>: Defines the document's body, where content is placed.
2. Text Formatting Tags:
o <h1> to <h6>: Headings of different levels.
o <p>: Defines a paragraph.
o <br>: Line break.
o <hr>: Horizontal rule (line).
3. Text Tags:
o <strong> or <b>: Bold text.
o <em> or <i>: Italic text.
o <u>: Underlined text.
o <sub>: Subscript text.
o <sup>: Superscript text.
4. Link Tags:
o <a>: Defines a hyperlink.
Attribute: href: Specifies the URL of the link.
Attribute: target="_blank": Opens the linked document in a new
window/tab.
5. List Tags:
o <ul>: Defines an unordered list.
o <ol>: Defines an ordered list.
o <li>: Defines a list item.
6. Table Tags:
o <table>: Defines a table.
o <tr>: Defines a table row.
o <td>: Defines a table cell.
o <th>: Defines a table header cell.
7. Form Tags:
o <form>: Defines an HTML form for user input.
Attribute: action: Specifies where to send the form-data when submitted.
Attribute: method: Specifies the HTTP method (GET or POST) to be used
when submitting the form.
o <input>: Defines an input control.
Attribute: type: Specifies the type of input (e.g., text, checkbox, radio).
o <textarea>: Defines a multiline input control (text area).
o <select>: Defines a dropdown list.
<option>: Defines an option in a dropdown list.
8. Image Tag:
o <img>: Defines an image.
Attribute: src: Specifies the URL of the image.
Attribute: alt: Specifies an alternate text for the image (for accessibility).
9. Miscellaneous Tags:
o <div>: Defines a division or section in an HTML document.
o <span>: Defines a section in a document.
o <meta>: Provides meta-information (not displayed on the page).
These are some of the fundamental HTML 4.0 tags. Keep in mind that HTML has evolved since
then (the current version being HTML5), which introduces new tags and features.
•Formatting tags: <B>, <BASEFONT>, <BIG>, <FONT>, <I>, <S>, <STRIKE>, <SMALL>,
<SUB>,<SUP>, <TT>, <U>, <ABBR>, <ACRONYM>, <ADDRESS>, <CITE>, <CODE>,
<DEL>, <DFN>, <EM>,<INS>, <KBD>, <Q>, <SAMP>, <STRONG>, <VAR>,
<BLOCKQUOTE>, <BR>, <CENTER>, <DIV>,<HR>, <H1>-<H6>, <P>, <PRE>, and
<SPAN>.
•List tags: <LI>, <DIR>, <DL>, <DT>, <DD>, <MENU>, <OL>, and </UL>.
Global Attributes
Most tag attributes tend to be unique to the tag, some are almost universal and usable With any
[Link] attributes in HTML refer to attributes that can be used with any HTML element,
regardless of the type of element. These attributes provide common functionalities and behaviors
across different elements. Here are some commonly used global attributes in HTML:
These attributes can be applied to almost any HTML element, providing flexibility and
enhancing the behavior and accessibility of web pages. Understanding these global attributes
allows web developers to create more interactive and accessible web applications.
Space-separated list of classes of the tag
Attribute Purpose Used With
the execution of script code embedded in an HTML document. Each event handler is tied to a
specific event that can occur during a person's use of a browser. When a user submits a form, for
example, you can capture that event and launch a field validation script using the onsubmit event
handler:
¾For the specifics on writing scripts for your HTML documents, see"Introduction to JavaScripting,"
Thus, when a user clicks the Submit button, the scripted function named "validate" fires and
checks the data the user is submitting for appropriate formatting, content, or other validation
checks.
Table 3.2 details the event handlers available under HTML 4.0. Most can be used within any HTML
element, but a few are limited to specific elements. These special cases are noted in the table.
<FRAMESET> elements
<FRAMESET> elements
onfocus A form field receives focus by tabbing to it or by clicking it with the mouse
onblur A form field loses focus by tabbing out of it or by clicking a different field with
onkeypress A key is pressed and released over a page elementonkeydown A key is pressed over a page
element
onselect A user selects some text in a text field; only allowed in the <INPUT> and
<TEXTAREA> elements
onchange A form field loses focus and its value has changed since gaining focus; only
allowed in the